blob: f6e66143c33846477d68c0759087ff8a4e787e28 [file] [log] [blame]
vchtchetkinedceaaa52009-07-22 13:34:53 -07001#
2# Copyright (C) 2006 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 = AdbWinApi
18TARGETPATH = obj
19TARGETTYPE = DYNLINK
20
21UMTYPE = windows
22DLLDEF = AdbWinApi.def
23
24# Use statically linked atl libraries:
25# - atls.lib for free build
26# - atlsd.lib for checked build
27USE_STATIC_ATL = 1
28# Use ATL v. 7.1
29ATL_VER = 71
30# Use STL v. 6.0
31USE_STL = 1
32STL_VER = 60
33# Use multithreaded libraries
34USE_LIBCMT = 1
35
36# Include directories
37INCLUDES = $(DDK_INC_PATH); \
38 $(SDK_INC_PATH); \
39 $(CRT_INC_PATH); \
40 $(SDK_INC_PATH)\crt; \
41 $(CRT_INC_PATH)\atl71; \
42 $(SDK_INC_PATH)\crt\stl60
43
44# Common target libraries
45TARGETLIBS = $(SDK_LIB_PATH)\ole32.lib \
46 $(SDK_LIB_PATH)\Advapi32.lib \
47 $(SDK_LIB_PATH)\Kernel32.lib \
48 $(SDK_LIB_PATH)\User32.lib \
49 $(SDK_LIB_PATH)\oleaut32.lib \
50 $(SDK_LIB_PATH)\wbemuuid.lib \
51 $(SDK_LIB_PATH)\uuid.lib \
52 $(SDK_LIB_PATH)\setupapi.lib \
Raphael3e44f3b2009-08-06 20:51:11 -070053 $(SDK_LIB_PATH)\usbd.lib \
54 $(SDK_LIB_PATH)\winusb.lib
vchtchetkinedceaaa52009-07-22 13:34:53 -070055
56!IF "$(DDKBUILDENV)" == "fre"
57# Libraries for release (free) builds
58TARGETLIBS = $(TARGETLIBS) $(ATL_LIB_PATH)\atls.lib
59!ELSE
60# Libraries for debug (checked) builds
61TARGETLIBS = $(TARGETLIBS) $(ATL_LIB_PATH)\atlsd.lib
62!ENDIF
63
64# Common C defines
65C_DEFINES= $(C_DEFINES) -DADBWIN_EXPORTS -D_UNICODE \
66 -DUNICODE -DWIN32 -D_WINDOWS -D_USRDLL -D_WINDLL
67
68!IF "$(DDKBUILDENV)" == "fre"
69# C defines for release (free) builds
70C_DEFINES = $(C_DEFINES) -DNDEBUG
71!ELSE
72# C defines for debug (checked) builds
73C_DEFINES = $(C_DEFINES) -D_DEBUG
74!ENDIF
75
76# Turn on all warnings, and treat warnings as errors
77MSC_WARNING_LEVEL = /W4 /Wp64 /WX
78
79# Common C defines
80USER_C_FLAGS = $(USER_C_FLAGS) /FD /EHsc /wd4100 /wd4200 /wd4702 /nologo
81
82# Set precompiled header information
83PRECOMPILED_CXX = 1
84PRECOMPILED_INCLUDE = stdafx.h
85PRECOMPILED_SOURCEFILE = stdafx.cpp
86
87# Define source files for AdbWinApi.dll
vchtchetkine82675112009-07-24 11:30:41 -070088SOURCES = adb_api.cpp \
89 adb_endpoint_object.cpp \
Raphael3e44f3b2009-08-06 20:51:11 -070090 adb_winusb_endpoint_object.cpp \
vchtchetkine39164842009-07-28 12:45:33 -070091 adb_legacy_endpoint_object.cpp \
vchtchetkine82675112009-07-24 11:30:41 -070092 adb_helper_routines.cpp \
93 adb_interface.cpp \
Raphael3e44f3b2009-08-06 20:51:11 -070094 adb_winusb_interface.cpp \
vchtchetkine82675112009-07-24 11:30:41 -070095 adb_legacy_interface.cpp \
96 adb_interface_enum.cpp \
97 adb_io_completion.cpp \
Raphael3e44f3b2009-08-06 20:51:11 -070098 adb_winusb_io_completion.cpp \
vchtchetkine39164842009-07-28 12:45:33 -070099 adb_legacy_io_completion.cpp \
vchtchetkine82675112009-07-24 11:30:41 -0700100 adb_object_handle.cpp \
101 AdbWinApi.cpp \
vchtchetkinedceaaa52009-07-22 13:34:53 -0700102 AdbWinApi.rc