blob: 12b860980e0fac6b2f3d2f519a6775887753053a [file] [log] [blame]
Kaido Kertda45c042022-05-09 11:08:54 -07001# Copyright 2021 The Cobalt Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("//build/config/win/visual_studio_version.gni")
16
17config("platform_configuration") {
18 configs = [
19 "//starboard/build/config/sabi",
20 "//starboard/win/shared/platform_configuration",
21 ]
22
23 ldflags = [ "/SUBSYSTEM:CONSOLE" ]
24 libs = [
25 "shell32.lib",
26 "winmm.lib",
27 "gdi32.lib",
28 "dbghelp.lib",
29 "user32.lib",
30 "shlwapi.lib",
31 "mfplat.lib",
32 "mfuuid.lib",
33 "windowsapp.lib",
34 ]
35
Kaido Kertb1089432024-03-18 19:46:49 -070036 include_dirs = []
Kaido Kertda45c042022-05-09 11:08:54 -070037
38 ldflags += [
39 "/DYNAMICBASE",
40
41 # TODO: SubSystem is hardcoded in
42 # win/sources_template.vcxproj. This will have the exe behave in the
43 # expected way in MSVS: when it's run without debug (Ctrl+F5), it
44 # will pause after finish; when debugging (F5) it will not pause
45 # before the cmd window disappears.
46 # Currently the value is ignored by msvs_makefile.py which generates
47 # the MSVS project files (it's in "data" in GenerateOutput()). Fix
48 # it if we ever need to change SubSystem.
49 "/SUBSYSTEM:CONSOLE",
50 "/MACHINE:x64",
51
52 # Do not generate a WinMD file.
53 "/WINMD:NO",
54
55 # Don't send error reports to MS.
56 "/errorReport:none",
57 ]
58
59 cflags = [
60 # Following V8 upstream to disable narrowing conversion.
61 "/wd4838",
62 ]
63
Kaido Kert0c2b1d42023-04-10 16:27:03 -070064 defines = [
65 "_WIN32",
66 "WIN32",
67 "WINDOWS",
Kaido Kertda45c042022-05-09 11:08:54 -070068
Kaido Kert0c2b1d42023-04-10 16:27:03 -070069 # Enable GNU extensions to get prototypes like ffsl.
70 "_GNU_SOURCE=1",
71 ]
Kaido Kertda45c042022-05-09 11:08:54 -070072}