VirtualBox

source: vbox/trunk/src/VBox/Main/testcase/makefile.tstVBoxAPIWin@ 53517

Last change on this file since 53517 was 45064, checked in by vboxsync, 12 years ago

fix OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1#
2# tstVBoxAPILinux makefile
3#
4#
5# Copyright (C) 2006-2013 Oracle Corporation
6#
7# This file is part of VirtualBox Open Source Edition (OSE), as
8# available from http://www.virtualbox.org. This file is free software;
9# you can redistribute it and/or modify it under the terms of the GNU
10# General Public License (GPL) as published by the Free Software
11# Foundation, in version 2 as it comes in the "COPYING" file of the
12# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14#
15# Several assumptions and propositions:
16# - Visual Studio has already installed on machine or you already have nmake.exe, cl.exe, link.exe
17# - Windows SDK has already installed on machine or you already have Uuid.Lib Ole32.Lib OleAut32.Lib OleDlg.Lib
18# - VirtualBox SDK was downloaded and was placed into folder where VirtualBox had been installed.
19# - nmake is a default tool that builds projects based on commands contained in this description file
20# - cl is cl.exe - Windows compiler
21# - link is link.exe - Windows linker
22# - all needed paths have been set in working environment. It means that when you type "cl" from the console,
23# Windows shall find cl.exe by using enviroment variable PATH or something similar.
24#
25# The best way to accomplish it is to run a script vcvars32.bat located in the Visual studio "bin" directory.
26# This script installs needed paths in your working environment.
27# Important!!!
28# Script vcvars32.bat sets up needed paths only for local console session.
29# For permanent using, needed paths must be added globally.
30#
31# Several possible examples of paths:
32# VS_INSTALL_PATH = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\"
33# VS_INCLUDE_PATH = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include"
34# VS_ATLMFC_INCLUDE_PATH = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include"
35# WIN_SDK_INCLUDE_PATH = "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include"
36# WIN_SDK_LIB_PATH = "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64\"
37# VB_INSTALL_PATH = "C:\Program Files\Oracle\VirtualBox"
38#
39
40
41CXX = cl
42LINK = link
43PATH_MSCOM = ../../../bindings/mscom
44INCS_MSCOM = $(PATH_MSCOM)/include
45LIBS_MSCOM = $(PATH_MSCOM)/lib
46
47LIBS_DEPS = "Uuid.Lib" "Ole32.Lib" "OleAut32.Lib" "OleDlg.Lib"
48
49tstVBoxAPIWin_SOURCES = $(LIBS_MSCOM)/VirtualBox_i.c
50tstVBoxAPIWin_DEPS = $(INCS_MSCOM)
51
52COMPILER_CMDLINE = /Zi /nologo /W3 /WX- /Od /Oy- /Gm /EHsc /RTC1 /GS /fp:precise /Gd /analyze- /errorReport:queue
53
54LINKER_CMDLINE = /INCREMENTAL /DEBUG /SUBSYSTEM:CONSOLE
55
56# default linking
57tstVBoxAPIWin.exe: tstVBoxAPIWin.obj VirtualBox_i.obj
58 $(LINK) /out:tstVBoxAPIWin.exe $** $(LIBS_DEPS)
59
60# default compilation
61tstVBoxAPIWin.obj:
62 $(CXX) /c /I$(INCS_MSCOM) tstVBoxAPIWin.cpp
63
64# default compilation
65VirtualBox_i.obj:
66 $(CXX) /c /I$(INCS_MSCOM) $(tstVBoxAPIWin_SOURCES)
67
68# linking with defined linker's options
69#tstVBoxAPIWin.exe: tstVBoxAPIWin.obj VirtualBox_i.obj
70# $(LINK) $(LINKER_CMDLINE) /out:tstVBoxAPIWin.exe $** $(LIBS_DEPS)
71
72# compile with pre-defined compiler's options and locally defined paths
73#tstVBoxAPIWin.obj:
74# $(CXX) /c $(COMPILER_CMDLINE) /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) tstVBoxAPIWin.cpp
75
76# compile with locally defined paths
77#tstVBoxAPIWin.obj:
78# $(CXX) /c /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) tstVBoxAPIWin.cpp
79
80# compile with pre-defined compiler's options and locally defined paths
81#VirtualBox_i.obj:
82# $(CXX) /c $(COMPILER_CMDLINE) /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) $(tstVBoxAPIWin_SOURCES)
83
84# compile with locally defined paths
85#VirtualBox_i.obj:
86# $(CXX) /c /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) $(tstVBoxAPIWin_SOURCES)
87
88
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