aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.21/src/os/user/ya.make
blob: 0005f463d853c18b0a5925735a93076e9ad3a3e2 (plain) (blame)
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
GO_LIBRARY()

NO_COMPILER_WARNINGS()

SRCS(
    lookup.go
    user.go
)

IF (OS_DARWIN)
    SRCS(
        cgo_listgroups_unix.go
        cgo_lookup_syscall.go
        cgo_lookup_unix.go
        getgrouplist_syscall.go
    )
ENDIF()

IF (CGO_ENABLED)
    IF (OS_LINUX)
        SRCS(
            cgo_listgroups_unix.go
            cgo_lookup_unix.go
        )
        CGO_SRCS(
            cgo_lookup_cgo.go
            getgrouplist_unix.go
        )
    ENDIF()
ELSE()
    IF (OS_LINUX)
        SRCS(
            listgroups_unix.go
            lookup_stubs.go
            lookup_unix.go
        )
    ENDIF()
ENDIF()

IF (OS_WINDOWS)
    SRCS(
        lookup_windows.go
    )
ENDIF()

END()