• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Copyright (C) 2009 The Android Open Source Project
3#
4#  Licensed under the Apache License, Version 2.0 (the "License");
5#  you may not use this file except in compliance with the License.
6#  You may obtain a copy of the License at
7#
8#       http://www.apache.org/licenses/LICENSE-2.0
9#
10#  Unless required by applicable law or agreed to in writing, software
11#  distributed under the License is distributed on an "AS IS" BASIS,
12#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#  See the License for the specific language governing permissions and
14#  limitations under the License.
15#
16
17TARGETNAME = adb_winapi_test
18TARGETPATH = obj
19TARGETTYPE = PROGRAM
20
21_NT_TARGET_VERSION = $(_NT_TARGET_VERSION_VISTA)
22
23UMTYPE  = console
24UMENTRY = main
25
26# Use statically linked atl libraries:
27USE_STATIC_ATL  = 1
28
29# Use STL, default version
30USE_STL         = 1
31
32# Use multithreaded libraries
33USE_LIBCMT      = 1
34
35TARGETLIBS=$(SDK_LIB_PATH)\ole32.lib    \
36           $(SDK_LIB_PATH)\oleaut32.lib \
37           ..\api\obj$(BUILD_ALT_DIR)\i386\AdbWinApi.lib
38
39INCLUDES=$(DDK_INC_PATH)\;$(SDK_INC_PATH)\;$(CRT_INC_PATH)\;$(ATL_INC_PATH)\api
40
41# Common C defines
42USER_C_FLAGS = $(USER_C_FLAGS) /FD /wd4100 /nologo
43
44# The STL uses C++ exception handling.
45USE_NATIVE_EH=1
46
47# Turn on all warnings, and treat warnings as errors
48MSC_WARNING_LEVEL = /W4 /WX
49
50# Disable precompiled header to work-around compiler issue with interaction with
51# ASLR on Windows 7 and newer.
52# http://blogs.msdn.com/b/vcblog/archive/2009/11/12/visual-c-precompiled-header-errors-on-windows-7.aspx
53#PRECOMPILED_CXX = 1
54#PRECOMPILED_INCLUDE = stdafx.h
55#PRECOMPILED_SOURCEFILE = stdafx.cpp
56
57SOURCES = adb_winapi_test.cpp
58