File tree 4 files changed +11
-9
lines changed
4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ list(APPEND JSSC_ADDITIONAL_INCLUDES target/nar/javah-include/)
68
68
# linux, macos, etc
69
69
string (TOLOWER "${CMAKE_SYSTEM_NAME} " OS_NAME)
70
70
if (APPLE )
71
- # scijava expects "osx", not "darwin"
71
+ # See <native.lib.directory> in pox.xml
72
72
set (OS_NAME "osx" )
73
73
endif ()
74
74
Original file line number Diff line number Diff line change 19
19
<cmake .download.binaries>false</cmake .download.binaries>
20
20
<!-- cmake maven plugin -->
21
21
<cmake .classifier>linux-x86_64</cmake .classifier>
22
+ <!-- FIXME "Makefiles" parameter MUST be optional see cmake-maven-project/cmake-maven-project#7 -->
23
+ <cmake .generator>Unix Makefiles</cmake .generator>
22
24
<!-- native lib loader (dependency) -->
23
25
<native .lib.directory>linux_64</native .lib.directory>
24
26
</properties >
87
89
<configuration >
88
90
<sourcePath >${project.basedir} </sourcePath >
89
91
<targetPath >${project.build.directory} /cmake</targetPath >
90
- <!-- FIXME "Makefiles" should be optional see cmake-maven-project/cmake-maven-project#7 -->
91
- <generator >Unix Makefiles </generator >
92
+ <!-- FIXME "Makefiles" parameter MUST be optional see cmake-maven-project/cmake-maven-project#7 -->
93
+ <generator >${cmake.generator} </generator >
92
94
<!-- TODO Use -DCMAKE_TOOLCHAIN_FILE file for cross-compile
93
95
<options>
94
96
<option>-DCMAKE_TOOLCHAIN_FILE=toolchain/Mingw64.cmake</option>
160
162
</os >
161
163
</activation >
162
164
<properties >
163
- <cmake .download.binaries>true</cmake .download.binaries>
165
+ <cmake .root.dir>${env.PROGRAMFILES} /CMake</cmake .root.dir>
166
+ <!-- FIXME "Makefiles" parameter MUST be optional see cmake-maven-project/cmake-maven-project#7 -->
167
+ <cmake .generator>Visual Studio 14 2015</cmake .generator>
164
168
<cmake .classifier>windows-x86_64</cmake .classifier>
165
169
<native .lib.directory>windows_64</native .lib.directory>
166
- <cmake .root.dir />
167
- <cmake .child.dir />
168
170
</properties >
169
171
</profile >
170
172
Original file line number Diff line number Diff line change 52
52
* Get native library version
53
53
*/
54
54
JNIEXPORT jstring JNICALL Java_jssc_SerialNativeInterface_getNativeLibraryVersion (JNIEnv *env, jobject object) {
55
- return env->NewStringUTF (" 2.8.1 " );
55
+ return env->NewStringUTF (" FIXME " /* FIXME: jSSC_NATIVE_LIB_VERSION missing */ );
56
56
}
57
57
58
58
/* OK */
Original file line number Diff line number Diff line change 25
25
#include < jni.h>
26
26
#include < stdlib.h>
27
27
#include < windows.h>
28
- #include " ../ jssc_SerialNativeInterface.h"
28
+ #include < jssc_SerialNativeInterface.h>
29
29
30
30
// #include <iostream>
31
31
35
35
* Get native library version
36
36
*/
37
37
JNIEXPORT jstring JNICALL Java_jssc_SerialNativeInterface_getNativeLibraryVersion (JNIEnv *env, jobject object) {
38
- return env->NewStringUTF (jSSC_NATIVE_LIB_VERSION);
38
+ return env->NewStringUTF (" FIXME " /* FIXME: jSSC_NATIVE_LIB_VERSION missing */ );
39
39
}
40
40
41
41
/*
You can’t perform that action at this time.
0 commit comments