···
1
-
diff --git a/qt/antimony.pro b/qt/antimony.pro
2
-
index 9d586f4..b055a6d 100644
3
-
--- a/qt/antimony.pro
4
-
+++ b/qt/antimony.pro
5
-
@@ -12,14 +12,9 @@ QMAKE_CXXFLAGS_RELEASE += -O3
7
-
QMAKE_CXXFLAGS += -Werror=switch
9
-
-GITREV = $$system(git log --pretty=format:'%h' -n 1)
10
-
-GITDIFF = $$system(git diff --quiet --exit-code || echo "+")
11
-
-GITTAG = $$system(git describe --exact-match --tags 2> /dev/null)
12
-
-GITBRANCH = $$system(git rev-parse --abbrev-ref HEAD)
14
-
-QMAKE_CXXFLAGS += "-D'GITREV=\"$${GITREV}$${GITDIFF}\"'"
15
-
-QMAKE_CXXFLAGS += "-D'GITTAG=\"$${GITTAG}\"'"
16
-
-QMAKE_CXXFLAGS += "-D'GITBRANCH=\"$${GITBRANCH}\"'"
17
-
+QMAKE_CXXFLAGS += "-D'GITREV=\"$$(GITREV)\"'"
18
-
+QMAKE_CXXFLAGS += "-D'GITTAG=\"$$(GITTAG)\"'"
19
-
+QMAKE_CXXFLAGS += "-D'GITBRANCH=\"$$(GITBRANCH)\"'"
21
-
OLD_GL_SET = $$(OLD_GL)
22
-
equals(OLD_GL_SET, "true") {
23
-
@@ -125,11 +120,11 @@ macx {
27
-
- executable.path = /usr/local/bin
28
-
+ executable.path = $$(out)/bin
29
-
executable.files = antimony
30
-
- nodes_folder.path = /usr/local/bin/sb/nodes
31
-
+ nodes_folder.path = $$(out)/bin/sb/nodes
32
-
nodes_folder.files = ../py/nodes/*
33
-
- fab_folder.path = /usr/local/bin/sb/fab
34
-
+ fab_folder.path = $$(out)/bin/sb/fab
35
-
fab_folder.files = ../py/fab/*
36
-
INSTALLS += executable nodes_folder fab_folder
38
-
diff --git a/qt/fab.pri b/qt/fab.pri
39
-
index a54813b..b500536 100644
42
-
@@ -54,7 +54,7 @@ DEFINES += '_STATIC_= '
45
-
QMAKE_CFLAGS += -std=gnu99
46
-
- QMAKE_CXXFLAGS += $$system(/usr/bin/python3-config --includes)
47
-
+ QMAKE_CXXFLAGS += $$system(python3-config --includes)
51
-
diff --git a/qt/shared.pri b/qt/shared.pri
52
-
index e7d0e3a..026eae3 100644
55
-
@@ -39,41 +39,11 @@ macx {
1
+
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
2
+
index ddc5c9b..d80728a 100644
3
+
--- a/app/CMakeLists.txt
4
+
+++ b/app/CMakeLists.txt
5
+
@@ -158,16 +158,6 @@ target_link_libraries(${ANTIMONY_APP}
59
-
- QMAKE_CXXFLAGS += $$system(/usr/bin/python3-config --includes)
60
-
- QMAKE_LFLAGS += $$system(/usr/bin/python3-config --ldflags)
61
-
+ QMAKE_CXXFLAGS += $$system(python3-config --includes)
62
-
+ QMAKE_LFLAGS += $$system(python3-config --ldflags)
7
+
################################################################################
64
-
# Even though this is in QMAKE_LFLAGS, the linker is picky about
65
-
# library ordering (so it needs to be here too).
66
-
LIBS += -lpython3.4m
9
+
-execute_process(COMMAND git log --pretty=format:'%h' -n 1
10
+
- OUTPUT_VARIABLE GITREV)
11
+
-execute_process(COMMAND bash -c "git diff --quiet --exit-code || echo +"
12
+
- OUTPUT_VARIABLE GITDIFF)
13
+
-execute_process(COMMAND git describe --exact-match --tags
14
+
- OUTPUT_VARIABLE GITTAG
16
+
-execute_process(COMMAND git rev-parse --abbrev-ref HEAD
17
+
- OUTPUT_VARIABLE GITBRANCH)
68
-
- # ldconfig is being used to find libboost_python, but it's in a different
69
-
- # place in different distros (and is not in the default $PATH on Debian).
70
-
- # First, check to see if it's on the default $PATH.
71
-
- system(which ldconfig > /dev/null) {
72
-
- LDCONFIG_BIN = "ldconfig"
74
-
- # If that failed, then search for it in its usual places.
75
-
- isEmpty(LDCONFIG_BIN) {
76
-
- for(p, $$list(/sbin/ldconfig /usr/bin/ldconfig)) {
77
-
- exists($$p): LDCONFIG_BIN = $$p
80
-
- # If that search failed too, then exit with an error.
81
-
- isEmpty(LDCONFIG_BIN) {
82
-
- error("Could not find ldconfig!")
85
-
- # Check for different boost::python naming schemes
86
-
- LDCONFIG_OUT = $$system($$LDCONFIG_BIN -p|grep python)
87
-
- for (b, $$list(boost_python-py34 boost_python3)) {
88
-
- contains(LDCONFIG_OUT, "lib$${b}.so") {
90
-
- GOT_BOOST_PYTHON = True
94
-
- # If we couldn't find boost::python, exit with an error.
95
-
- isEmpty(GOT_BOOST_PYTHON) {
96
-
- error("Could not find boost::python3")
98
-
+ LIBS += -lboost_python3
19
+
add_definitions(-D'GITREV="${GITREV}${GITDIFF}"'
20
+
-D'GITTAG="${GITTAG}"'
21
+
-D'GITBRANCH="${GITBRANCH}"')