-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.linux
55 lines (40 loc) · 1.68 KB
/
Makefile.linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
PLATFORM=x64
USE_BOOST=FALSE
USE_CAIRO=FALSE
USE_STATIC=TRUE
CONFIGURATION=Release
include config.txt
RDKIT_NATIVE_OPTS =
ifeq ($(USE_CAIRO),TRUE)
else
RDKIT_NATIVE_OPTS:=$(RDKIT_NATIVE_OPTS) --no_cairo
endif
ifeq ($(USE_BOOST), TRUE)
RDKIT_NATIVE_OPTS:=$(RDKIT_NATIVE_OPTS) --use_boost
endif
ifeq ($(USE_STATIC), TRUE)
RDKIT_NATIVE_OPTS:=$(RDKIT_NATIVE_OPTS) --use_static_libs
endif
RDKIT_NATIVE_TARGETS:=$(RDKIT_DIR)/Code/JavaWrappers/csharp_wrapper/linux/$(PLATFORM)/RDKFuncs.so
RDKIT_WRAPPER_TARGETS:=$(RDKIT_DIR)/Code/JavaWrappers/csharp_wrapper/RDKit2DotNet/bin/$(CONFIGURATION)/netcoreapp3.1/RDKit2DotNet.dll
RDKIT_JAVA_TARGETS:=$(RDKIT_DIR)/Code/JavaWrappers/gmwrapper/org.RDKit.jar
all: $(TARGETS)
rdkit_native: $(RDKIT_NATIVE_TARGETS)
rdkit_wrapper: $(RDKIT_WRAPPER_TARGETS)
rdkit_java: $(RDKIT_JAVA_TARGETS)
rdkit_java_test:
python ./build_rdkit_csharp.py --enable_test --target_lang java --build_rdkit --build_wrapper $(RDKIT_NATIVE_OPTS)
$(RDKIT_NATIVE_TARGETS):
python ./build_rdkit_csharp.py --build_rdkit $(RDKIT_NATIVE_OPTS) --build_platform $(PLATFORM)
$(RDKIT_WRAPPER_TARGETS): $(RDKIT_NATIVE_TARGETS)
python ./build_rdkit_csharp.py --build_wrapper --more_functions $(RDKIT_NATIVE_OPTS)
nuget_package: $(RDKIT_WRAPPER_TARGETS) $(RDKIT_NATIVE_TARGETS)
python ./build_rdkit_csharp.py --build_nuget
$(RDKIT_JAVA_TARGETS):
python ./build_rdkit_csharp.py --target_lang java --build_rdkit --build_wrapper $(RDKIT_NATIVE_OPTS)
copy_to_myapp:
cp $(RDKIT_DIR)/Code/JavaWrappers/csharp_wrapper/RDKit2DotNet/bin/Release/RDKit.DotNetWrap.$(RDKIT2DOTNET_VERSION).nupkg ./myApp/
clean:
python3 ./build_rdkit_csharp.py --clean
.PHONY: clean
.PHONY: rdkit_native rdkit_wrapper nuget_package