Home | History | Annotate | Download | only in adb_winapi_test
      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 
     17 TARGETNAME = adb_winapi_test
     18 TARGETPATH = obj
     19 TARGETTYPE = PROGRAM
     20 
     21 _NT_TARGET_VERSION = $(_NT_TARGET_VERSION_VISTA)
     22 
     23 UMTYPE  = console
     24 UMENTRY = main
     25 
     26 # Use statically linked atl libraries:
     27 USE_STATIC_ATL  = 1
     28 
     29 # Use STL, default version
     30 USE_STL         = 1
     31 
     32 # Use multithreaded libraries
     33 USE_LIBCMT      = 1
     34 
     35 TARGETLIBS=$(SDK_LIB_PATH)\ole32.lib    \
     36            $(SDK_LIB_PATH)\oleaut32.lib \
     37            ..\api\obj$(BUILD_ALT_DIR)\i386\AdbWinApi.lib
     38 
     39 INCLUDES=$(DDK_INC_PATH)\;$(SDK_INC_PATH)\;$(CRT_INC_PATH)\;$(ATL_INC_PATH)\api
     40 
     41 # Common C defines
     42 USER_C_FLAGS = $(USER_C_FLAGS) /FD /wd4100 /nologo
     43 
     44 # The STL uses C++ exception handling.
     45 USE_NATIVE_EH=1
     46 
     47 # Turn on all warnings, and treat warnings as errors
     48 MSC_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 
     57 SOURCES = adb_winapi_test.cpp
     58