go auto PEERDIRs
@@ -3251,6 +3251,11 @@ GO_TOOLS_ROOT_UNQUOTED=${GO_TOOLS_RESOURCE_GLOBAL}
GO_TOOLS_ROOT=${quo:GO_TOOLS_ROOT_UNQUOTED}
GO_TEST_MINER=${ARCADIA_BUILD_ROOT}/tools/go_test_miner/go_test_miner ${tool;hide:"tools/go_test_miner"}
+GO_STD_LIB_PREFIX=${GOSTD}/
+GO_ARCADIA_PROJECT_PREFIX=a.yandex-team.ru/
+GO_CONTRIB_PROJECT_PREFIX=vendor/
+GO_SKIP_IMPORTS=unsafe C
+
macro GO_COMPILE_CGO1(NAME, FLAGS[], FILES...) {
.CMD=${GO_TOOLS_ROOT}/pkg/tool/${GO_HOST_OS}_${GO_HOST_ARCH}/cgo -objdir $BINDIR -importpath $NAME $FLAGS -- ${CGO_CFLAGS_VALUE} ${input:FILES} ${output;hide:"_cgo_export.h"} ${output;hide:"_cgo_export.c"} ${output;hide:"_cgo_gotypes.go"} ${output;noauto;hide:"_cgo_main.c"} ${output;hide;rootrel;noext:FILES.cgo1.go} ${output;hide;rootrel;noext:FILES.cgo2.c} ${output;noauto;hide:"_cgo_flags"} $GO_TOOLCHAIN_ENV ${kv;hide:"p go"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}
}
@@ -3275,13 +3280,21 @@ GO_LINK_LIB=$GO_LINK_LIB_IMPL($GO_SRCS_VALUE)
GO_LINK_EXE=$GO_LINK_EXE_IMPL($GO_SRCS_VALUE)
GO_LINK_TEST=$GO_LINK_TEST_IMPL($GO_SRCS_VALUE GO_XTEST_FILES $GO_XTEST_SRCS_VALUE)
+# This is a temporary macro and should be removed along with ymake roll out which
+# contains the changes for go auto PEERDIRs
+macro GO_FAKE_OUTPUT(FILES...) {
+ ENABLE(UNUSED_MACRO)
+}
+
GO_SRCS_VALUE=
macro GO_SRCS(FILES...) {
+ GO_FAKE_OUTPUT($FILES)
SET_APPEND(GO_SRCS_VALUE $FILES)
}
GO_XTEST_SRCS_VALUE=
macro GO_XTEST_SRCS(FILES...) {
+ GO_FAKE_OUTPUT($FILES)
SET_APPEND(GO_XTEST_SRCS_VALUE $FILES)
}
@@ -3292,6 +3305,7 @@ macro GO_UNUSED_SRCS(FLAGS...) {
CGO_SRCS_VALUE=
macro CGO_SRCS(FILES...) {
SET_APPEND(CGO_SRCS_VALUE $FILES)
+ PEERDIR(${GOSTD}/syscall)
}
GO_LDFLAGS_GLOBAL=
@@ -3313,7 +3327,7 @@ macro CGO_LDFLAGS(FLAGS...) {
GO_TOOLCHAIN_ENV=$TOOLCHAIN_ENV
module GO_BASE_UNIT {
- .EXTS=.*
+ .EXTS=.go .o .obj .a .mf
.CMD=TOUCH_UNIT
.NODE_TYPE=Bundle
.PEERDIR_POLICY=as_build_from
@@ -3345,7 +3359,6 @@ module GO_BASE_UNIT {
module GO_LIBRARY: GO_BASE_UNIT {
.CMD=GO_LINK_LIB
.NODE_TYPE=Bundle
- .EXTS=.go .o .obj .a .mf
.GLOBAL=GO_LDFLAGS
SET(MODULE_TYPE LIBRARY)
