1 # |
1 # |
2 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
24 # |
24 # |
25 |
25 |
26 include LibCommon.gmk |
26 include LibCommon.gmk |
27 |
27 |
28 ifeq ($(OPENJDK_TARGET_OS), macosx) |
28 ifeq ($(OPENJDK_TARGET_OS), macosx) |
29 # JavaNativeFoundation framework not supported in static builds |
29 # JavaNativeFoundation framework not supported in static builds |
30 ifneq ($(STATIC_BUILD), true) |
30 ifneq ($(STATIC_BUILD), true) |
31 |
31 |
32 ################################################################################ |
32 ################################################################################ |
33 |
33 |
34 LIBOSXSECURITY_DIRS := $(TOPDIR)/src/java.base/macosx/native/libosxsecurity |
34 LIBOSXSECURITY_DIRS := $(TOPDIR)/src/java.base/macosx/native/libosxsecurity |
35 LIBOSXSECURITY_CFLAGS := -I$(LIBOSXSECURITY_DIRS) \ |
35 LIBOSXSECURITY_CFLAGS := -I$(LIBOSXSECURITY_DIRS) \ |
36 $(LIBJAVA_HEADER_FLAGS) \ |
36 $(LIBJAVA_HEADER_FLAGS) \ |
37 -I$(SUPPORT_OUTPUTDIR)/headers/java.base \ |
37 -I$(SUPPORT_OUTPUTDIR)/headers/java.base \ |
38 |
38 |
39 $(eval $(call SetupNativeCompilation,BUILD_LIBOSXSECURITY, \ |
39 $(eval $(call SetupNativeCompilation, BUILD_LIBOSXSECURITY, \ |
40 LIBRARY := osxsecurity, \ |
40 NAME := osxsecurity, \ |
41 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
41 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
42 SRC := $(LIBOSXSECURITY_DIRS), \ |
42 SRC := $(LIBOSXSECURITY_DIRS), \ |
43 OPTIMIZATION := LOW, \ |
43 OPTIMIZATION := LOW, \ |
44 CFLAGS := $(CFLAGS_JDKLIB) \ |
44 CFLAGS := $(CFLAGS_JDKLIB) \ |
45 $(LIBOSXSECURITY_CFLAGS), \ |
45 $(LIBOSXSECURITY_CFLAGS), \ |