VirtualBox

source: vbox/trunk/src/VBox/Main/testcase/makefile.tstVBoxAPIXPCOM@ 69500

Last change on this file since 69500 was 69500, checked in by vboxsync, 7 years ago

*: scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1# $Id: makefile.tstVBoxAPIXPCOM 69500 2017-10-28 15:14:05Z vboxsync $
2## @file
3# tstVBoxAPIXPCOM makefile
4#
5
6#
7# Copyright (C) 2006-2017 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18PATH_XPCOM = ..
19PATH_BIN = ../../../../
20
21# This setting must be the same as used when building VBoxXPCOM.so.
22# If you get a lot of unresolved symbols, try commenting it out.
23VBOX_WITH_XPCOM_NAMESPACE_CLEANUP=1
24
25PATH_XPCOM_IDL = $(PATH_XPCOM)/idl
26INCS_XPCOM = $(PATH_XPCOM)/include \
27 $(PATH_XPCOM)/include/nsprpub \
28 $(PATH_XPCOM)/include/string \
29 $(PATH_XPCOM)/include/xpcom \
30 $(PATH_XPCOM)/include/ipcd
31
32ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
33 DEFS_XPCOM += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
34endif
35
36# Adjust this to match your platform, pick from RT_OS_LINUX, RT_OS_WINDOWS,
37# RT_OS_DARWIN, RT_OS_SOLARIS...
38DEFS_XPCOM += RT_OS_LINUX
39
40
41#
42# Link with the public XPCOM libraries
43#
44tstVBoxAPIXPCOM: tstVBoxAPIXPCOM.o
45 g++ -g -o $@ $^ \
46 $(PATH_BIN)/VBoxXPCOM.so \
47 -Wl,-rpath $(PATH_BIN)/ \
48 -ldl -lpthread
49
50tstVBoxAPIXPCOM.o: tstVBoxAPIXPCOM.cpp
51 g++ -c -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) $(addprefix -D, $(DEFS_XPCOM)) -o $@ tstVBoxAPIXPCOM.cpp
52
53clean:
54 rm -f tstVBoxAPIXPCOM tstVBoxAPIXPCOM.o
55
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette