File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 234
234
cp $top_dir /contrib/$install_library_path /$arch /lib/libz.a z/prebuilt/libz-$arch .a
235
235
fi
236
236
237
- if [ $lib = " png" ] || [ $lib = " freetype2" ]; then
237
+ if [ $lib = " png" ] || [ $lib = " freetype2" ] || [ $lib = " websockets " ] ; then
238
238
echo " copying libz..."
239
239
mkdir -p z/prebuilt/
240
240
cp $top_dir /contrib/$install_library_path /$arch /lib/libz.a z/prebuilt/libz-$arch .a
265
265
cp -r $top_dir /contrib/$install_library_path /$arch /include/j* .h $archive_name /include/
266
266
fi
267
267
268
+ if [ $lib = " tiff" ]; then
269
+ cp -r $top_dir /contrib/$install_library_path /$arch /include/tif* .h $archive_name /include/
270
+ fi
271
+
272
+ if [ $lib = " webp" ]; then
273
+ cp -r $top_dir /contrib/$install_library_path /$arch /include/webp/ $archive_name /include/
274
+ fi
275
+
276
+ if [ $lib = " websockets" ]; then
277
+ cp -r $top_dir /contrib/$install_library_path /$arch /include/libwebsockets.h $archive_name /include/
278
+ fi
279
+
280
+ if [ $lib = " zlib" ]; then
281
+ cp -r $top_dir /contrib/$install_library_path /$arch /include/z* .h $archive_name /include/
282
+ fi
283
+
268
284
# TODO: add more header files decides here
269
285
270
286
echo " cleaning up"
279
295
create_fat_library crypto
280
296
fi
281
297
282
- if [ $lib = " png" ] || [ $lib = " curl" ] || [ $lib = " freetype2" ]; then
298
+ if [ $lib = " png" ] || [ $lib = " curl" ] || [ $lib = " freetype2" ] || [ $lib = " websockets " ] ; then
283
299
create_fat_library z
284
300
fi
285
301
Original file line number Diff line number Diff line change @@ -164,9 +164,9 @@ endif
164
164
cppcheck = $(shell $(CC ) $(CFLAGS ) -E -dM - < /dev/null | grep -E $(1 ) )
165
165
166
166
EXTRA_CFLAGS += -I$(PREFIX ) /include
167
- CPPFLAGS := $(CPPFLAGS ) $(EXTRA_CFLAGS )
167
+ CPPFLAGS := $(CPPFLAGS ) $(CFLAGS )
168
168
CFLAGS := $(CFLAGS ) $(EXTRA_CFLAGS )
169
- CXXFLAGS := $(CXXFLAGS ) $(EXTRA_CFLAGS )
169
+ CXXFLAGS := $(CXXFLAGS ) $(CFLAGS )
170
170
EXTRA_LDFLAGS += -L$(PREFIX ) /lib
171
171
LDFLAGS := $(LDFLAGS ) $(EXTRA_LDFLAGS )
172
172
# Do not export those! Use HOSTVARS.
Original file line number Diff line number Diff line change 27
27
DEPS_websockets = zlib $(DEPS_zlib )
28
28
29
29
.websockets : websockets .zlib toolchain.cmake
30
- cd $< && $(HOSTVARS ) CFLAGS=" $( CFLAGS) $( EX_ECFLAGS) " $(CMAKE ) -DCMAKE_BUILD_TYPE=Release - DLWS_WITH_SSL=0 -DLWS_WITHOUT_TEST_PING=1
30
+ cd $< && $(HOSTVARS ) CFLAGS=" $( CFLAGS) $( EX_ECFLAGS) " $(CMAKE ) -DLWS_WITH_SSL=0 -DLWS_WITHOUT_TEST_PING=1
31
31
cd $< && $(MAKE ) VERBOSE=1 install
32
32
touch $@
You can’t perform that action at this time.
0 commit comments