-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.sdk
125 lines (108 loc) · 3 KB
/
Makefile.sdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Makefile.sdk: create a sdk/ directory with all the files needed
# to build Tao modules.
# The HelloWorld, LoremIpsum and ObjectLoader modules are included as examples.
#
# Identification of the default build environment
BUILDENV=$(BUILDENV_$(shell uname -s | sed s/CYGWIN.*/Cygwin/ | sed s/MINGW.*/MinGW/))
BUILDENV_Darwin=macosx
BUILDENV_Linux=linux
BUILDENV_MinGW=mingw
SDK_ROOT = sdk
OBJECT_LOADER_FILES = \
$(shell find modules/object_loader -type d -o -name \*.h -o \( -name \*.cpp -a -not -name moc\*.cpp \) -o -name \*.c -o -name \*.pri -o -name \*.pro -o -name \*.tbl -o -name \*.png -o -name \*.xl -o -name \*.in) \
modules/object_loader/glc-lib/include \
$(shell find modules/object_loader/glc-lib/include)
HELLO_WORLD_FILES = \
modules/hello_world \
modules/hello_world/hello_world.pro \
modules/hello_world/hello_world.xl
LOREM_IPSUM_FILES = \
modules/lorem_ipsum \
modules/lorem_ipsum/icon.png \
modules/lorem_ipsum/lorem_ipsum.cpp \
modules/lorem_ipsum/lorem_ipsum.h \
modules/lorem_ipsum/lorem_ipsum.pro \
modules/lorem_ipsum/lorem_ipsum.tbl \
modules/lorem_ipsum/lorem_ipsum.xl \
modules/lorem_ipsum/traces.tbl \
modules/lorem_ipsum/doc \
modules/lorem_ipsum/doc/Doxyfile.in \
modules/lorem_ipsum/doc/lorem_ipsum.doxy.h
NEWMODULE_FILES = \
modules/newmodule \
modules/newmodule/README \
modules/newmodule/icon.png \
modules/newmodule/newmodule.pro.t \
modules/newmodule/newmodule.taokey.notsigned.t \
modules/newmodule/newmodule.xl.t \
modules/newmodule/doc \
modules/newmodule/doc/Doxyfile.in.t \
modules/newmodule/doc/newmodule.doxy.h.t
FILES_COMMON = \
doxygen.pri \
doxygen.sh \
fix_qt_refs_app.in \
main.pri \
main_defs.pri \
sdk.pro.txt \
translations.pri \
tools \
tools/preprocessor.pl \
version.pri \
modules \
modules/.gitignore \
modules/configure \
modules/README_SDK \
modules/modules.pro \
modules/modules.pri \
modules/modules_defs.pri \
modules/modules_doc.pri \
modules/module_list.pri \
modules/tbl_wrap \
modules/Doxyfile \
modules/DoxygenLayout_en.xml \
modules/DoxygenLayout_fr.xml \
$(OBJECT_LOADER_FILES) \
$(HELLO_WORLD_FILES) \
$(LOREM_IPSUM_FILES) \
$(NEWMODULE_FILES) \
tao \
tao/include \
$(shell find tao/include) \
tao/xlr \
tao/xlr/xlr \
tao/xlr/xlr/include \
$(shell find tao/xlr/xlr/include) \
$(NULL)
FILES_macosx = \
libxlr \
libxlr/libxlr*.dylib \
modules/fix_qt_refs \
$(NULL)
FILES_linux = \
libxlr \
libxlr/libxlr.so* \
$(NULL)
FILES_mingw = \
libxlr \
$(NULL)
OTHER_COMMANDS_mingw = $(CP_A) ./install/libxlr.a ./install/xlr.dll $(SDK_ROOT)/libxlr
####
FILES = $(FILES_COMMON) $(FILES_$(BUILDENV))
MKDIR_P = mkdir -p
CP_A = cp -a
sdk:
set -e ; \
mkdir -p $(SDK_ROOT)
for i in $(FILES) ; do \
if [ -d "$$i" ] ; then \
$(MKDIR_P) $(SDK_ROOT)/"$$i" ; \
else \
$(CP_A) "$$i" $(SDK_ROOT)/"$$i" ; \
fi ; \
done ; \
mv $(SDK_ROOT)/modules/README_SDK $(SDK_ROOT)/README ; \
mv $(SDK_ROOT)/sdk.pro.txt $(SDK_ROOT)/sdk.pro ; \
tao/updaterev.sh -n > $(SDK_ROOT)/VERSION ; \
$(OTHER_COMMANDS_$(BUILDENV))
.PHONY: sdk