Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 7f05ee6

Browse files
author
Comma Device
committed
fix apks
1 parent e3a6bde commit 7f05ee6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

SConscript

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Import('env')
1+
Import('env', 'zmq')
22

33
# TODO: remove src-prefix and cereal from command string. can we set working directory?
44
env.Command(["gen/c/include/c++.capnp.h", "gen/c/include/java.capnp.h"], [], "mkdir -p cereal/gen/c/include && touch $TARGETS")
@@ -32,8 +32,9 @@ messaging_deps = [
3232

3333
messaging_lib = env.Library('messaging', messaging_deps)
3434

35-
# note, this rebuilds the deps shared
36-
env.SharedLibrary('messaging_shared', messaging_deps)
35+
# note, this rebuilds the deps shared, zmq is statically linked to make APK happy
36+
messaging_shared_lib = env.SharedLibrary('messaging_shared', messaging_deps, LIBS=[zmq, 'm', 'stdc++', 'gnustl_shared'])
37+
env.Command(['messaging/messaging.so'], [messaging_shared_lib], "chmod 777 $SOURCES && ln -sf `realpath $SOURCES` $TARGET")
3738

3839
env.Program('messaging/bridge', ['messaging/bridge.cc'], LIBS=['messaging', 'zmq'])
3940

0 commit comments

Comments
 (0)