File tree Expand file tree Collapse file tree 4 files changed +18
-24
lines changed Expand file tree Collapse file tree 4 files changed +18
-24
lines changed Original file line number Diff line number Diff line change 204
204
continue
205
205
fi
206
206
207
+
207
208
is_simulator=" "
208
209
install_library_path=" install-ios-OS"
209
210
build_library_path=" iPhoneOS"
248
249
cp -r $top_dir /contrib/$install_library_path /$arch /include/luajit-2.0/ $archive_name /include/
249
250
fi
250
251
252
+ if [ $lib = " lua" ]; then
253
+ cp -r $top_dir /contrib/$install_library_path /$arch /include/l* .h* $archive_name /include/
254
+ fi
255
+
251
256
if [ $lib = " curl" ]; then
252
257
cp -r $top_dir /contrib/$install_library_path /$arch /include/curl/ $archive_name /include/
253
258
fi
256
261
cp -r $top_dir /contrib/$install_library_path /$arch /include/freetype2 $archive_name /include
257
262
fi
258
263
264
+ if [ $lib = " jpeg" ]; then
265
+ cp -r $top_dir /contrib/$install_library_path /$arch /include/j* .h $archive_name /include/
266
+ fi
267
+
259
268
# TODO: add more header files decides here
260
269
261
270
echo " cleaning up"
Original file line number Diff line number Diff line change 174
174
export LDFLAGS=" -L${SDKROOT} /usr/lib -arch ${ARCH} -isysroot ${SDKROOT} -miphoneos-version-min=${SDK_MIN} "
175
175
176
176
EXTRA_CFLAGS=" "
177
- # if [ "$PLATFORM" = "OS" ]; then
178
- # EXTRA_CFLAGS="-arch ${ARCH}"
179
- # if [ "$ARCH" != "arm64" ]; then
180
- # EXTRA_CFLAGS+=" -mcpu=cortex-a8"
181
- # fi
182
- # EXTRA_LDFLAGS="-arch ${ARCH}"
183
- # else
184
- # EXTRA_CFLAGS="-arch ${ARCH}"
185
- # EXTRA_LDFLAGS="-arch ${ARCH}"
186
- # fi
187
-
188
- # EXTRA_CFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
189
- # EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
190
177
191
178
info " LD FLAGS SELECTED = '${LDFLAGS} '"
192
179
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ diff -ru lua/Makefile lua-f/Makefile
3
3
+++ lua-f/Makefile 2012-03-21 13:58:30.000000000 +0100
4
4
@@ -38,7 +38,7 @@
5
5
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
6
-
6
+
7
7
# Convenience platforms targets.
8
8
- PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
9
9
+ PLATS= aix ansi bsd freebsd generic linux ios macosx mingw posix solaris
10
-
10
+
11
11
# What to install.
12
12
TO_BIN= lua luac
13
13
diff -ru lua/src/Makefile lua-f/src/Makefile
@@ -16,9 +16,9 @@ diff -ru lua/src/Makefile lua-f/src/Makefile
16
16
@@ -98,6 +98,9 @@
17
17
linux:
18
18
$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl"
19
-
19
+
20
20
+ ios:
21
- + $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX
21
+ + $(MAKE) all
22
22
+
23
23
macosx:
24
24
$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
Original file line number Diff line number Diff line change @@ -51,14 +51,12 @@ lua: lua-$(LUA_VERSION).tar.gz .sum-lua
51
51
ifdef HAVE_DARWIN_OS
52
52
(cd $(UNPACK_DIR) && \
53
53
sed -e 's%gcc%$(CC)%' \
54
- -e 's%LDFLAGS=%LDFLAGS=$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' \
55
- -i.orig src/Makefile)
56
- endif
57
- ifdef HAVE_SOLARIS
58
- (cd $(UNPACK_DIR) && \
59
- sed -e 's%LIBS="-ldl"$$%LIBS="-ldl" MYLDFLAGS="$(EXTRA_LDFLAGS)"%' \
54
+ -e 's%LDFLAGS=%LDFLAGS=$(LDFLAGS)%' \
55
+ -e 's%CFLAGS= -O2 -Wall $(MYCFLAGS)%CFLAGS=$(MYCFLAGS)%' \
56
+ -e 's%MYCFLAGS=%MYCFLAGS=$(CFLAGS)%' \
60
57
-i.orig src/Makefile)
61
58
endif
59
+
62
60
ifdef HAVE_WIN32
63
61
cd $(UNPACK_DIR) && sed -i.orig -e 's/lua luac/lua.exe luac.exe/' Makefile
64
62
endif
70
68
$(MOVE)
71
69
72
70
.lua : lua
73
- cd $< && $(HOSTVARS_PIC ) $(MAKE ) $(LUA_TARGET )
71
+ cd $< && $(HOSTVARS_PIC ) $(MAKE ) VERBOS=1 $(LUA_TARGET )
74
72
ifdef HAVE_WIN32
75
73
cd $</src && $(HOSTVARS) $(MAKE) liblua.a
76
74
endif
You can’t perform that action at this time.
0 commit comments