##// END OF EJS Templates
Fixed some builds issues
jeandet -
r8:79b3f038ed29 default
parent child
Show More
@@ -0,0 +1,2
1 top_srcdir=$$PWD
2 top_builddir=$$shadowed($$PWD)
@@ -0,0 +1,2
1 top_srcdir=$$PWD
2 top_builddir=$$shadowed($$PWD)
@@ -0,0 +1,2
1 top_srcdir=$$PWD
2 top_builddir=$$shadowed($$PWD)
@@ -1,67 +1,67
1 1 #==================================================
2 2 #
3 3 # _|_| _|_|_| _| _| _|
4 4 # _| _| _| _| _|_|_|
5 5 # _| _|_| _| _| _| _| _|
6 6 # _| _| _| _| _| _| _|
7 7 # _|_| _| _|_|_| _| _| _|_|_|
8 8 #
9 9 #==================================================
10 10 #
11 11 #
12 12
13 13 QT += core gui
14 14
15 15 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
16 16
17 17 TARGET = QIlib
18 18 TEMPLATE = lib
19 19
20 20 LIBS += -lfl
21 21
22 22 MOC_DIR = moc
23 23 RCC_DIR = resources
24 24 OBJECTS_DIR = obj
25 25 DESTDIR = ../bin
26 26
27 27 include ( ./parsers/Flex_Bison_FIles/Flex_Bison_FIles.pri )
28 28
29 29 qilibcfg.path = $$[QT_INSTALL_PREFIX]/mkspecs/features
30 30 qilibcfg.files = \
31 31 qilib.prf
32 32
33 33 target.path = $$[QT_INSTALL_LIBS]
34 34
35 35 qilibHeaders.path = $$[QT_INSTALL_HEADERS]/QIlib
36 36 qilibHeaders.files = \
37 37 qicadnetlist.h \
38 38 qicadpcb.h \
39 39 qicadlisplikelexique.h
40 40
41 41 qilibParsersHeaders.path = $$[QT_INSTALL_HEADERS]/QIlib/parsers
42 42 qilibParsersHeaders.files = \
43 43 parsers/lispLike_driver.h \
44 44 parsers/lispLike_scanner.h
45 45
46 46
47 47 INSTALLS += target qilibHeaders qilibParsersHeaders qilibcfg
48 48
49 INCLUDEPATH += ./parsers
49 INCLUDEPATH += ./qilib/lispLike ./parsers
50 50
51 51 SOURCES += \
52 52 qicadnetlist.cpp \
53 53 parsers/lispLike_driver.cpp \
54 54 parsers/lispLike_scanner.cpp \
55 55 qicadpcb.cpp \
56 56 qicadlisplikelexique.cpp
57 57
58 58
59 59 HEADERS += \
60 60 qicadnetlist.h \
61 61 parsers/lispLike_driver.h \
62 62 parsers/lispLike_scanner.h \
63 63 qicadpcb.h \
64 64 qicadlisplikelexique.h
65 65
66 66 OTHER_FILES += qilib.prf
67 67
@@ -1,41 +1,41
1 1 #-------------------------------------------------
2 2 #
3 3 # Project created by QtCreator 2015-06-11T21:37:25
4 4 #
5 5 #-------------------------------------------------
6 6
7 7 QT += core gui opengl
8 8 CONFIG += qilib
9 9
10 10 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
11 11
12 12 TARGET = PCBView
13 13 TEMPLATE = app
14 14
15 15 MOC_DIR = moc
16 16 RCC_DIR = resources
17 17 OBJECTS_DIR = obj
18 18 DESTDIR = ../../bin
19 19
20 INCLUDEPATH += ../../qilib $${DESTDIR}/../qilib/
20 INCLUDEPATH += ../../qilib $${DESTDIR}/../qilib/ $${DESTDIR}/../qilib/lispLike/
21 21
22 22 LIBS += -L../../bin -lQIlib
23 23
24 24 SOURCES += main.cpp\
25 25 mainwindow.cpp \
26 26 pcbgraphicview.cpp \
27 27 pcbrectpad.cpp \
28 28 pcbmodule.cpp \
29 29 pcbline.cpp \
30 30 pcbcontext.cpp \
31 31 pcbvia.cpp
32 32
33 33 HEADERS += mainwindow.h \
34 34 pcbgraphicview.h \
35 35 pcbrectpad.h \
36 36 pcbmodule.h \
37 37 pcbline.h \
38 38 pcbcontext.h \
39 39 pcbvia.h
40 40
41 41 FORMS += mainwindow.ui
@@ -1,51 +1,55
1 1 QT += core gui
2 2 CONFIG += qilib
3 3
4 4 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
5 5
6 6 TARGET = LispLikeDump
7 7 TEMPLATE = app
8 8 MOC_DIR = moc
9 9 RCC_DIR = resources
10 10 OBJECTS_DIR = obj
11 11 DESTDIR = ../../bin
12 12
13 13 SOURCES += main.cpp
14 14
15 INCLUDEPATH += ../../qilib $${DESTDIR}/../qilib/
15 INCLUDEPATH += ../../bin/../../qilib \
16 ../../qilib
17
18 message("top_builddir" $$top_builddir)
19 message("top_srcdir" $$top_srcdir)
16 20
17 21 LIBS += -L../../bin -lQIlib
18 22
19 23 FILESTOCOPY.files += \
20 24 $${PWD}/../testFiles/netlist1.net \
21 25 $${PWD}/../testFiles/netlist2.net \
22 26 $${PWD}/../testFiles/pcb1.kicad_pcb\
23 27 $${PWD}/../testFiles/pcb2.kicad_pcb\
24 28 $${PWD}/../testFiles/pcb3.kicad_pcb
25 29
26 30 FILESTOCOPY.path = $${DESTDIR}
27 31
28 32 message($${DESTDIR})
29 33
30 34 defineTest(copyFiles) {
31 35 files = $$1
32 36 DDIR = $$2
33 37 win32:DDIR ~= s,/,\\,g
34 38 QMAKE_POST_LINK += $$QMAKE_MKDIR $$quote($$DDIR) $$escape_expand(\\n\\t)
35 39 for(FILE, files) {
36 40 message(copying file $$FILE to $$DIR)
37 41 # Replace slashes in paths with backslashes for Windows
38 42 win32:FILE ~= s,/,\\,g
39 43 QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
40 44 }
41 45 export(QMAKE_POST_LINK)
42 46 }
43 47
44 48
45 49
46 50 !isEmpty(FILESTOCOPY.files) {
47 51 copyFiles($$FILESTOCOPY.files,$$FILESTOCOPY.path)
48 52 }
49 53
50 54
51 55
General Comments 0
You need to be logged in to leave comments. Login now