File: nasm.BUILD

package info (click to toggle)
tensorflow 2.14.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 359,396 kB
  • sloc: cpp: 2,418,453; python: 736,954; java: 20,254; ansic: 18,962; sh: 9,279; pascal: 7,941; objc: 1,584; xml: 988; ada: 727; cs: 273; perl: 150; makefile: 92
file content (138 lines) | stat: -rw-r--r-- 2,977 bytes parent folder | download | duplicates (11)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
licenses(["notice"])

exports_files(["LICENSE"])

INCLUDES = [
    ".",
    "include",
    "x86",
    "asm",
    "disasm",
    "output",
]

COPTS = select({
    ":windows": [],
    "//conditions:default": [
        "-w",
        "-DHAVE_CONFIG_H",
    ],
})

cc_library(
    name = "nasm_2_14_02",
    srcs = [
        "asm/assemble.c",
        "asm/directbl.c",
        "asm/directiv.c",
        "asm/error.c",
        "asm/eval.c",
        "asm/exprdump.c",
        "asm/exprlib.c",
        "asm/float.c",
        "asm/labels.c",
        "asm/listing.c",
        "asm/parser.c",
        "asm/pptok.c",
        "asm/pragma.c",
        "asm/preproc.c",
        "asm/preproc-nop.c",
        "asm/quote.c",
        "asm/rdstrnum.c",
        "asm/segalloc.c",
        "asm/stdscan.c",
        "asm/strfunc.c",
        "asm/tokhash.c",
        "common/common.c",
        "disasm/disasm.c",
        "disasm/sync.c",
        "macros/macros.c",
        "nasmlib/badenum.c",
        "nasmlib/bsi.c",
        "nasmlib/crc64.c",
        "nasmlib/errfile.c",
        "nasmlib/file.c",
        "nasmlib/filename.c",
        "nasmlib/hashtbl.c",
        "nasmlib/ilog2.c",
        "nasmlib/malloc.c",
        "nasmlib/md5c.c",
        "nasmlib/mmap.c",
        "nasmlib/path.c",
        "nasmlib/perfhash.c",
        "nasmlib/raa.c",
        "nasmlib/rbtree.c",
        "nasmlib/readnum.c",
        "nasmlib/realpath.c",
        "nasmlib/saa.c",
        "nasmlib/srcfile.c",
        "nasmlib/string.c",
        "nasmlib/strlist.c",
        "nasmlib/ver.c",
        "output/codeview.c",
        "output/legacy.c",
        "output/nulldbg.c",
        "output/nullout.c",
        "output/outaout.c",
        "output/outas86.c",
        "output/outbin.c",
        "output/outcoff.c",
        "output/outdbg.c",
        "output/outelf.c",
        "output/outform.c",
        "output/outieee.c",
        "output/outlib.c",
        "output/outmacho.c",
        "output/outobj.c",
        "output/outrdf2.c",
        "output/strtbl.c",
        "stdlib/snprintf.c",
        "stdlib/strlcpy.c",
        "stdlib/strnlen.c",
        "stdlib/strrchrnul.c",
        "stdlib/vsnprintf.c",
        "x86/disp8.c",
        "x86/iflag.c",
        "x86/insnsa.c",
        "x86/insnsb.c",
        "x86/insnsd.c",
        "x86/insnsn.c",
        "x86/regdis.c",
        "x86/regflags.c",
        "x86/regs.c",
        "x86/regvals.c",
    ],
    hdrs = glob([
        "*.h",
        "include/*.h",
        "x86/*.h",
        "disasm/*.h",
        "config/*.h",
        "asm/*.h",
        "output/*.h",
        "nasmlib/*.h",
    ]),
    copts = COPTS,
    includes = INCLUDES,
)

cc_binary(
    name = "nasm",
    srcs = [
        "asm/nasm.c",
        "nasmlib/zerobuf.c",
    ],
    copts = COPTS,
    includes = INCLUDES,
    visibility = ["@libjpeg_turbo//:__pkg__"],
    deps = [
        ":nasm_2_14_02",
    ],
)

config_setting(
    name = "windows",
    values = {
        "cpu": "x64_windows",
    },
)