-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile.cppumaker
More file actions
executable file
·76 lines (42 loc) · 1.75 KB
/
Makefile.cppumaker
File metadata and controls
executable file
·76 lines (42 loc) · 1.75 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# $(PRJ) is the directory of the OpenOffice SDK
SETTINGS=$(PRJ)/settings
include $(SETTINGS)/settings.mk
include $(SETTINGS)/dk.mk
UNOPKG_EXT=uno.pkg
UNOOXT_EXT=oxt
## Define where cppumaker should create the automatic generated headers and sources require to compile an OpenOffice application
OUT_BIN=$(phplibdir)
OUT_INC=$(OUT)/inc
OUT_SLO=$(OUT)/slo
OUT_LIB=$(OUT)/lib
OUT_SLB=$(OUT)/slb
OUT_MISC=$(OUT)/misc
OUT_OBJ=$(OUT)/obj
OUT_CLASS=$(OUT)/class
IDL_DIR=$(PRJ)/idl
BIN_DIR=$(PRJ)/$(PLATFORM)/bin
CLASSES_DIR=$(PRJ)/classes
URE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH))/classes
COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
URE_TYPES="$(PHP_PUNO_URE_TYPES_RDB_PATH)"
#URE_SERVICES=$(subst \\,\,$(URE_MISC)$(PS)services.rdb)
OFFICE_TYPES="$(PHP_PUNO_PROGRAM_OFFAPI_RDB_PATH)"
#OFFICE_SERVICES=$(subst \\,\,$(OFFICE_BASE_PROGRAM_PATH)$(PS)services.rdb)
OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
CPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
OUT_COMP_INC = $(OUT_INC)/$(COMPONENT_NAME)
COMPOENNT_ENV_FLAG = $(OUT_MISC)/cpp_$(COMPONENT_NAME)_prepare_env.flag
COMPONENT_TYPEFLAG = $(OUT_MISC)/cpp_$(COMPONENT_NAME)_types.flag
TYPES =
TYPESLIST = $(foreach t,$(TYPES),-T$(t))
include $(SETTINGS)/stdtarget.mk
cppumaker :
@echo --------------------------------------------------------------------------------
@echo Generating C++ representations for idl types.
@echo THIS MAY TAKE A WHILE!!
@echo --------------------------------------------------------------------------------
-$(MKDIR) $(subst /,$(PS),$(@D))
-$(DEL) $(subst /,$(PS),$(COMPONENT_TYPEFLAG))
$(CPPUMAKER) -Gc -O$(OUT_COMP_INC) $(URE_TYPES) $(OFFICE_TYPES)
echo flagged > $@