-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
60 lines (52 loc) · 1.39 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package(
default_visibility = ["//visibility:public"],
)
config_setting(
name = "windows_dbg_x64",
values = {
"cpu": "x64_windows",
},
)
config_setting(
name = "windows_opt_x64",
values = {
"cpu": "x64_windows"
},
)
DEFINES = [
"NOGDI", # Don't pollute with GDI macros in windows.h.
"NOMINMAX", # Don't define min/max macros in windows.h.
"OS_WINDOWS=OS_WINDOWS",
"PRAGMA_SUPPORTED",
"WIN32",
"WINVER=0x0600",
"_CRT_SECURE_NO_DEPRECATE",
"_WIN32",
"_WIN32_WINNT=0x0600",
"_WINDOWS",
# Use math constants (M_PI, etc.) from the math library
"_USE_MATH_DEFINES",
# Defaults for other headers (along with OS_WINDOWS).
"COMPILER_MSVC",
# Doublespeak for "don't bloat namespace with incompatible winsock
# versions that I didn't include".
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms737629.aspx
"WIN32_LEAN_AND_MEAN=1",
]
# Options for everything below
all_options = [
"-Ithirdparty\openexr",
"-D_THREAD_SAFE",
"/EHsc"
]
cc_binary(
name = "openExrComposer",
srcs = ["src/main.cc",
"src/parser.cpp",
"src/parser.h",
"src/stringutils.cpp",
"src/stringutils.h"],
deps = ["@openexr//:ilm_imf"],
copts = all_options,
defines = DEFINES,
)