-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mirror of dropbox djinni#248 #15
Conversation
This separation of public and private headers allows users to specify "support-lib/include/" as obvious header search path and then use "#include <djinni/...>" as reliable include prefix. This also gives a sensible default for all the "--xxx-base-lib-include-prefix" values.
Adds the target "djinni" with the options DJINNI_WITH_OBJC, DJINNI_WITH_JNI and DJINNI_FRAMEWORK. Sets the cache variable DINNI_RUN_PATH to the location of the "run" generator script.
Infer analysis failedExternal Process Failedbear make �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang#scala-library;2.10.4 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#sbt;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#main;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#actions;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#classpath;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang#scala-compiler;2.10.4 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang#scala-reflect;2.10.4 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#launcher-interface;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#interface;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#io;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#control;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#completion;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#collections;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving jline#jline;2.11 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#api;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#compiler-integration;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#incremental-compiler;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#logging;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#process;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#relation;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#compile;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#persist;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-tools.sbinary#sbinary_2.10;0.4.2 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#classfile;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#compiler-ivy-integration;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#ivy;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#cross;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.apache.ivy#ivy;2.3.0 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving com.jcraft#jsch;0.1.46 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#run;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#task-system;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#tasks;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#tracking;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#cache;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#testing;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#test-agent;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#test-interface;1.0 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#main-settings;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#apply-macro;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#command;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#logic;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#compiler-interface;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#precompiled-2_8_2;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#precompiled-2_9_2;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-sbt#precompiled-2_9_3;0.13.5 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang#jline;2.10.4 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.fusesource.jansi#jansi;1.4 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.1 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.yaml#snakeyaml;1.15 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving com.github.scopt#scopt_2.11;3.2.0 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang#scala-compiler;2.11.0 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang#scala-reflect;2.11.0 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving org.scala-lang.modules#scala-xml_2.11;1.0.1 ...�[0m �M�[2K�[0m[�[0minfo�[0m] �[0mResolving jline#jline;2.11 ...�[0m STDERR |
Mirror of dropbox djinni#248
I have added a
CMakeLists.txt
that allows building the support-lib with CMake. The target name isdjinni
and it comes with a few options:DJINNI_WITH_OBJC
adds the Objective-C support files to the targetDJINNI_WITH_JNI
adds the JNI support files to the targetDJINNI_FRAMEWORK
builds the library as a.framework
on Apple systemsDJINNI_STATIC_LIB
builds Djinni as a static library instead of the default dynamicThere is nothing stopping you from having a single djinni library that contains both language support bindings if you're doing desktop work. The default library type is
SHARED
to make sure theJNI_OnLoad
andJNI_OnUnload
entry points are present. This has led to confusion in the past. If you chose to turnDJINNI_STATIC_LIB
on it is your job to calljniInit()
andjniShutdown()
appropriately.Because the
CXX_STANDARD
property cannot be propagated to consuming targets it needs to be set to >=11
manually there.The cache variable
DJINNI_RUN_PATH
is set to the location of Djinni'srun
script so it can be passed as argument toadd_custom_command()
-based generator scripts.Note this includes the changes of dropbox#281 because it depends on its new file structure to make sure building from the repository and from an installed binary are source compatible.