]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
add uic make ui_overlays.h
authormarshmellow42 <marshmellowrf@gmail.com>
Fri, 14 Apr 2017 14:31:00 +0000 (10:31 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Fri, 14 Apr 2017 14:31:00 +0000 (10:31 -0400)
to makefile

client/Makefile
client/ui/ui_overlays.h

index cea981f90b29e15e6360aa3c7f01267b9c4ba049..2f8530934297564b86c4f610ec560c5265084012 100644 (file)
@@ -40,11 +40,13 @@ endif
 QTINCLUDES = $(shell pkg-config --cflags Qt5Core Qt5Widgets 2>/dev/null)
 QTLDLIBS = $(shell pkg-config --libs Qt5Core Qt5Widgets 2>/dev/null)
 MOC = $(shell pkg-config --variable=host_bins Qt5Core)/moc
+UIC = $(shell pkg-config --variable=host_bins Qt5Core)/uic
 ifeq ($(QTINCLUDES), )
 # if Qt5 not found Check for correctly configured Qt4  
        QTINCLUDES = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null)
        QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)
        MOC = $(shell pkg-config --variable=moc_location QtCore)
+       UIC = $(shell pkg-config --variable=uic_location QtCore)
 endif
 ifeq ($(QTINCLUDES), )
 # if both pkg-config commands failed, search in common places
@@ -56,6 +58,7 @@ ifeq ($(QTINCLUDES), )
                        QTLDLIBS = -L$(QTDIR)/lib -lQt5Widgets -lQt5Gui -lQt5Core
                endif
                MOC = $(QTDIR)/bin/moc
+               UIC = $(QTDIR)/bin/uic
        endif
 endif
 
@@ -159,7 +162,7 @@ ZLIBOBJS = $(ZLIBSRCS:%.c=$(OBJDIR)/%.o)
 
 BINS = proxmark3 flasher fpga_compress
 WINBINS = $(patsubst %, %.exe, $(BINS))
-CLEAN = $(BINS) $(WINBINS) $(COREOBJS) $(CMDOBJS) $(ZLIBOBJS) $(QTGUIOBJS) $(OBJDIR)/*.o *.moc.cpp
+CLEAN = $(BINS) $(WINBINS) $(COREOBJS) $(CMDOBJS) $(ZLIBOBJS) $(QTGUIOBJS) $(OBJDIR)/*.o *.moc.cpp ./ui/ui_overlays.h
 
 all: lua_build $(BINS)
 
@@ -179,6 +182,9 @@ fpga_compress: $(OBJDIR)/fpga_compress.o $(ZLIBOBJS)
 proxguiqt.moc.cpp: proxguiqt.h
        $(MOC) -o$@ $^
 
+ui/ui_overlays.h: ./ui/overlays.ui
+       $(UIC) $^ > $@
+
 lualibs/usb_cmd.lua: ../include/usb_cmd.h
        awk -f usb_cmd_h2lua.awk $^ > $@
        
index daa6192bbab24348bd45fc2331f939180a5b02e0..76003fc12cd1fd72ed6b556f98027108510e29df 100644 (file)
@@ -6,23 +6,23 @@
 ** WARNING! All changes made in this file will be lost when recompiling UI file!
 ********************************************************************************/
 
-#ifndef UI_OVERLAYS_H
-#define UI_OVERLAYS_H
+#ifndef OVERLAYS_H
+#define OVERLAYS_H
 
 #include <QtCore/QVariant>
-#include <QAction>
-#include <QApplication>
-#include <QButtonGroup>
-#include <QFormLayout>
-#include <QHBoxLayout>
-#include <QHeaderView>
-#include <QLabel>
-#include <QPushButton>
-#include <QSlider>
-#include <QSpacerItem>
-#include <QTabWidget>
-#include <QVBoxLayout>
-#include <QWidget>
+#include <QtWidgets/QAction>
+#include <QtWidgets/QApplication>
+#include <QtWidgets/QButtonGroup>
+#include <QtWidgets/QFormLayout>
+#include <QtWidgets/QHBoxLayout>
+#include <QtWidgets/QHeaderView>
+#include <QtWidgets/QLabel>
+#include <QtWidgets/QPushButton>
+#include <QtWidgets/QSlider>
+#include <QtWidgets/QSpacerItem>
+#include <QtWidgets/QTabWidget>
+#include <QtWidgets/QVBoxLayout>
+#include <QtWidgets/QWidget>
 
 QT_BEGIN_NAMESPACE
 
@@ -261,4 +261,4 @@ namespace Ui {
 
 QT_END_NAMESPACE
 
-#endif // UI_OVERLAYS_H
+#endif // OVERLAYS_H
Impressum, Datenschutz