Changeset 3149 in vbox for trunk/src/libs/xpcom18a4/Makefile.kmk
- Timestamp:
- Jun 18, 2007 10:24:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r2981 r3149 35 35 $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy \ 36 36 $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) 37 38 37 TEMPLATE_XPCOM_CXXFLAGS.debug = -fno-inline 39 38 TEMPLATE_XPCOM_CXXFLAGS.release = -O … … 54 53 TEMPLATE_XPCOM_DEFS.linux = OSTYPE=\"Linux2.6\" OSARCH=\"Linux\" MOZ_DLL_SUFFIX=\".so\" XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1 55 54 TEMPLATE_XPCOM_DEFS.l4 = OSTYPE=\"L4ENV\" OSARCH=\"L4\" MOZ_DLL_SUFFIX=\".s.so\" XP_UNIX=1 L4ENV HAVE_VISIBILITY_ATTRIBUTE=1 56 TEMPLATE_XPCOM_DEFS.os2 = OSTYPE=\"OS/2 4.5\" OSARCH=\"OS/2\" MOZ_DLL_SUFFIX=\".dll\" XP_UNIX=155 TEMPLATE_XPCOM_DEFS.os2 = OSTYPE=\"OS/2\ 4.5\" OSARCH=\"OS/2\" MOZ_DLL_SUFFIX=\".dll\" XP_OS2 XP_PC BSD_SELECT TCPV40HDRS 57 56 TEMPLATE_XPCOM_LDFLAGS.darwin = $(VBOXR3NP_LDFLAGS.darwin) \ 58 57 -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \ … … 94 93 TEMPLATE_XPCOM_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) \ 95 94 $(PATH_VBox-xpcom-string)/idl_ts 95 ifeq ($(BUILD_TARGET),os2) 96 ifndef USE_OS2_TOOLKIT_HEADERS 97 TEMPLATE_XPCOM_DEFS.os2 += OS2EMX_PLAIN_CHAR 98 endif 99 TEMPLATE_XPCOM_DEFS.os2 += XP_OS2_EMX OS2 100 # this is at least for strnicmp() 101 TEMPLATE_XPCOM_DEFS.os2 += _EMX_SOURCE 102 # @@todo shouldn't this be somehow default for ASTOOL? 103 TEMPLATE_XPCOM_ASFLAGS.os2 += -Zomf 104 endif 96 105 97 106 … … 123 132 # -Wl,--whole-archive,--no-allow-shlib-undefined 124 133 134 125 135 # 126 136 # Template for building XPCOM executables for running at build time. … … 149 159 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 150 160 $(VBOX_PATH_SDK)/include/xpcom/ipcd 161 TEMPLATE_XPCOMBLDPROG_INCS.$(BUILD_TARGET) = $(TEMPLATE_XPCOMEXE_INCS.$(BUILD_TARGET)) 162 TEMPLATE_XPCOMBLDPROG_INCS.$(BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_INCS.$(BUILD_TARGET_ARCH)) 163 TEMPLATE_XPCOMBLDPROG_LIBPATH.$(BUILD_TARGET) = $(TEMPLATE_XPCOMEXE_LIBPATH.$(BUILD_TARGET)) 164 TEMPLATE_XPCOMBLDPROG_LIBPATH.$(BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_LIBPATH.$(BUILD_TARGET_ARCH)) 165 TEMPLATE_XPCOMBLDPROG_LDFLAGS.$(BUILD_TARGET) = $(TEMPLATE_XPCOMEXE_LDFLAGS.$(BUILD_TARGET)) 166 TEMPLATE_XPCOMBLDPROG_LDFLAGS.$(BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_LDFLAGS.$(BUILD_TARGET_ARCH)) 151 167 TEMPLATE_XPCOMBLDPROG_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) 152 168 … … 313 329 nsprpub/pr/include/md/_netbsd.h \ 314 330 nsprpub/pr/include/md/_openbsd.h \ 331 nsprpub/pr/include/md/_os2_errors.h \ 315 332 nsprpub/pr/include/md/_os2.h \ 333 nsprpub/pr/include/md/_pcos.h \ 316 334 nsprpub/pr/include/md/_solaris.h \ 317 335 nsprpub/pr/include/md/_unix_errors.h \ … … 528 546 xpcom/typelib/xpt/src/xpt_xdr.c 529 547 530 # We do these ONCE. 531 libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags) 532 libIDL_config_libs := $(shell $(VBOX_LIBIDL_CONFIG) --libs) 533 xpidl_CFLAGS = \ 548 ifeq ($(filter-out os2,$(BUILD_TARGET)),) 549 xpidl_INCS = $(VBOX_PATH_LIBIDL)/include $(VBOX_PATH_GLIB)/include 550 xpidl_LIBS = $(VBOX_PATH_LIBIDL)/lib/libidl.lib $(VBOX_PATH_LIBIDL)/lib/glib.lib 551 else 552 # We do these ONCE. 553 libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags) 554 libIDL_config_libs := $(shell $(VBOX_LIBIDL_CONFIG) --libs) 555 xpidl_CFLAGS = \ 534 556 $(libIDL_config_cflags) 535 xpidl_LDFLAGS = \557 xpidl_LDFLAGS = \ 536 558 $(libIDL_config_libs) 559 endif 537 560 538 561 # … … 710 733 VBox-xpcom-nspr_SOURCES.linux.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s 711 734 735 VBox-xpcom-nspr_SOURCES.os2 = \ 736 nsprpub/pr/src/io/prdir.c \ 737 nsprpub/pr/src/io/prfile.c \ 738 nsprpub/pr/src/io/prio.c \ 739 nsprpub/pr/src/io/prsocket.c \ 740 nsprpub/pr/src/md/os2/os2misc.c \ 741 nsprpub/pr/src/md/os2/os2sem.c \ 742 nsprpub/pr/src/md/os2/os2inrval.c \ 743 nsprpub/pr/src/md/os2/os2gc.c \ 744 nsprpub/pr/src/md/os2/os2thred.c \ 745 nsprpub/pr/src/md/os2/os2io.c \ 746 nsprpub/pr/src/md/os2/os2cv.c \ 747 nsprpub/pr/src/md/os2/os2sock.c \ 748 nsprpub/pr/src/md/os2/os2_errors.c \ 749 nsprpub/pr/src/md/os2/os2poll.c \ 750 nsprpub/pr/src/md/os2/os2rng.c \ 751 nsprpub/pr/src/threads/prdump.c \ 752 nsprpub/pr/src/threads/prmon.c \ 753 nsprpub/pr/src/threads/prsem.c \ 754 nsprpub/pr/src/threads/prcthr.c \ 755 nsprpub/pr/src/threads/combined/prucpu.c \ 756 nsprpub/pr/src/threads/combined/prucv.c \ 757 nsprpub/pr/src/threads/combined/prulock.c \ 758 nsprpub/pr/src/threads/combined/prustack.c \ 759 nsprpub/pr/src/threads/combined/pruthr.c 760 # gcc/emx sources 761 VBox-xpcom-nspr_SOURCES.os2 += \ 762 nsprpub/pr/src/md/os2/os2emx.s \ 763 nsprpub/pr/src/md/os2/os2vaclegacy.s 764 # IBM VAC sources (not used) 765 #VBox-xpcom-nspr_SOURCES.os2 += \ 766 # nsprpub/pr/src/md/os2/os2vacpp.asm 767 712 768 713 769 nsprpub/pr/src/prvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pr_bld.h … … 739 795 VBox-xpcom-base_TEMPLATE = XPCOM 740 796 VBox-xpcom-base_NOINST = 1 797 VBox-xpcom-base_DEFS = _IMPL_NS_COM 741 798 VBox-xpcom-base_SOURCES = \ 742 799 xpcom/base/nsAllocator.cpp \ … … 753 810 VBox-xpcom-ds_TEMPLATE = XPCOM 754 811 VBox-xpcom-ds_NOINST = 1 812 VBox-xpcom-ds_DEFS = _IMPL_NS_COM 755 813 VBox-xpcom-ds_SOURCES = \ 756 814 xpcom/ds/pldhash.c \ … … 792 850 VBox-xpcom-io_TEMPLATE = XPCOM 793 851 VBox-xpcom-io_NOINST = 1 794 VBox-xpcom-io_DEFS = MOZ_USER_DIR=\".mozilla\"852 VBox-xpcom-io_DEFS = _IMPL_NS_COM MOZ_USER_DIR=\".mozilla\" 795 853 VBox-xpcom-io_INCS.darwin = \ 796 854 xpcom/MoreFiles … … 831 889 VBox-xpcom-components_TEMPLATE = XPCOM 832 890 VBox-xpcom-components_NOINST = 1 833 VBox-xpcom-components_DEFS = EXPORT_XPTI_API891 VBox-xpcom-components_DEFS = _IMPL_NS_COM EXPORT_XPTI_API 834 892 VBox-xpcom-components_SOURCES = \ 835 893 xpcom/components/nsCategoryManager.cpp \ … … 843 901 VBox-xpcom-threads_TEMPLATE = XPCOM 844 902 VBox-xpcom-threads_NOINST = 1 903 VBox-xpcom-threads_DEFS = _IMPL_NS_COM 845 904 VBox-xpcom-threads_SOURCES = \ 846 905 xpcom/threads/plevent.c \ … … 856 915 VBox-xpcom-xptinfo_TEMPLATE = XPCOM 857 916 VBox-xpcom-xptinfo_NOINST = 1 858 VBox-xpcom-xptinfo_DEFS = EXPORT_XPTI_API917 VBox-xpcom-xptinfo_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API 859 918 VBox-xpcom-xptinfo_SOURCES = \ 860 919 xpcom/reflect/xptinfo/src/xptiFile.cpp \ … … 871 930 VBox-xpcom-xptcall_TEMPLATE = XPCOM 872 931 VBox-xpcom-xptcall_NOINST = 1 873 VBox-xpcom-xptcall_DEFS = EXPORT_XPTC_API932 VBox-xpcom-xptcall_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTC_API 874 933 VBox-xpcom-xptcall_DEFS.darwin = KEEP_STACK_16_BYTE_ALIGNED 875 934 VBox-xpcom-xptcall_DEFS.l4 = L4 … … 881 940 VBox-xpcom-xptcall_SOURCES.linux.amd64 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \ 882 941 xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp 942 # gcc/emx sources 943 VBox-xpcom-xptcall_SOURCES.os2 = xpcom/reflect/xptcall/src/md/os2/xptcinvoke_gcc_x86_os2.cpp \ 944 xpcom/reflect/xptcall/src/md/os2/xptcstubs_gcc_x86_os2.cpp 945 VBox-xpcom-xptcall_INCS.os2 = xpcom/reflect/xptcall/src/md/unix 946 VBox-xpcom-xptcall_DEFS.os2 = MOZ_NEED_LEADING_UNDERSCORE 947 # IBM/VAC sources (not used) 948 #VBox-xpcom-xptcall_SOURCES.os2 = xpcom/reflect/xptcall/src/md/unix/xptcstubs_os2.cpp \ 949 # xpcom/reflect/xptcall/src/md/unix/xptcinvoke_vacpp.asm \ 950 # xpcom/reflect/xptcall/src/md/unix/xptcstubs_vacpp.asm 883 951 884 952 VBox-xpcom-proxy_TEMPLATE = XPCOM 885 953 VBox-xpcom-proxy_NOINST = 1 954 VBox-xpcom-proxy_DEFS = _IMPL_NS_COM EXPORT_XPTC_API EXPORT_XPTI_API 886 955 VBox-xpcom-proxy_SOURCES = xpcom/proxy/src/nsProxyEvent.cpp \ 887 956 xpcom/proxy/src/nsProxyEventClass.cpp \ … … 892 961 # glue library which all client apps will link with 893 962 VBoxXPCOMGlue_TEMPLATE = XPCOM 894 VBoxXPCOMGlue_DEFS = XPCOM_GLUE963 VBoxXPCOMGlue_DEFS = _IMPL_NS_COM XPCOM_GLUE 895 964 VBoxXPCOMGlue_SOURCES = xpcom/glue/nsCOMPtr.cpp \ 896 965 xpcom/glue/nsComponentManagerUtils.cpp \ … … 910 979 # 911 980 VBoxXPCOM_TEMPLATE = XPCOM 981 VBoxXPCOM_NAME = $(basename $(notdir $(LIB_XPCOM))) 912 982 VBoxXPCOM_DEFS = BUILD_DCONNECT="1" _IMPL_NS_COM 913 983 VBoxXPCOM_SOURCES = \ … … 924 994 VBoxXPCOM_SOURCES.darwin = \ 925 995 darwindeps.cpp 996 VBoxXPCOM_SOURCES.os2 = \ 997 os2deps.cpp 926 998 VBoxXPCOM_LIBS = \ 927 999 $(TARGET_VBox-xpcom-typelib) \ … … 971 1043 endif 972 1044 TEMPLATE_XPCOMIPC_LIBS.darwin = $(TARGET_VBoxXPCOM) 1045 TEMPLATE_XPCOMIPC_LIBS.os2 = $(TARGET_VBoxXPCOM) 973 1046 974 1047 TEMPLATE_XPCOMIPCEXE = XPCOM IPC executables … … 1017 1090 # DCONNECT client shared object 1018 1091 VBoxXPCOMIPCC_TEMPLATE = XPCOMIPC 1092 VBoxXPCOMIPCC_NAME.os2 = VBoxIPCC 1019 1093 ifneq ($(BUILD_TARGET),linux) 1020 1094 VBoxXPCOMIPCC_INST = $(INST_BIN)components/
Note:
See TracChangeset
for help on using the changeset viewer.