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

Commit

Permalink
fix apks
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Nov 20, 2019
1 parent e3a6bde commit 7f05ee6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SConscript
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import('env')
Import('env', 'zmq')

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

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

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

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

Expand Down

0 comments on commit 7f05ee6

Please sign in to comment.