16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
|
21 |
|
22 # |
21 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
23 |
25 |
24 # |
26 # |
25 # This file sets up the default options and base requirements for GNOME |
27 # This file sets up the default options and base requirements for GNOME |
26 # components. |
28 # components. |
27 # |
29 # |
28 include $(WS_MAKE_RULES)/prep.mk |
|
29 # Most cmake-based components require intltools. |
30 # Most cmake-based components require intltools. |
30 include $(WS_MAKE_RULES)/intltool.mk |
31 include $(WS_MAKE_RULES)/intltool.mk |
31 # cmake components don't generally use autoconf. |
32 # cmake components don't generally use autoconf. |
32 include $(WS_MAKE_RULES)/justmake.mk |
33 include $(WS_MAKE_RULES)/justmake.mk |
33 |
34 |
36 |
37 |
37 # This component uses cmake to generate Makefiles and so has no configure |
38 # This component uses cmake to generate Makefiles and so has no configure |
38 CMAKE = $(shell which cmake) |
39 CMAKE = $(shell which cmake) |
39 CMAKE_BUILD_TYPE ?= RelWithDebInfo |
40 CMAKE_BUILD_TYPE ?= RelWithDebInfo |
40 |
41 |
|
42 # Layout configuration. |
|
43 CMAKE_PREFIX ?= $(USRDIR) |
|
44 |
41 CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER="$(CXX)" |
45 CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER="$(CXX)" |
42 CMAKE_OPTIONS += -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" |
46 CMAKE_OPTIONS += -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" |
43 CMAKE_OPTIONS += -DCMAKE_C_COMPILER="$(CC)" |
47 CMAKE_OPTIONS += -DCMAKE_C_COMPILER="$(CC)" |
44 CMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CFLAGS)" |
48 CMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CFLAGS)" |
45 CMAKE_OPTIONS += -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" |
49 CMAKE_OPTIONS += -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" |
46 |
50 |
47 # Must start install paths with a leading '/' or files will be installed into |
51 # Must start install paths with a leading '/' or files will be installed into |
48 # wrong location! |
52 # wrong location! |
49 CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX="$(USRDIR)" |
53 CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX="$(CMAKE_PREFIX)" |
50 CMAKE_OPTIONS += -DCMAKE_MODULE_LINKER_FLAGS="$(LDFLAGS)" |
54 CMAKE_OPTIONS += -DCMAKE_MODULE_LINKER_FLAGS="$(LDFLAGS)" |
51 CMAKE_OPTIONS += -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" |
55 CMAKE_OPTIONS += -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" |
52 CMAKE_OPTIONS += -DGETTEXT_MSGFMT_EXECUTABLE="$(GNUBIN)/msgfmt" |
56 CMAKE_OPTIONS += -DGETTEXT_MSGFMT_EXECUTABLE="$(GNUBIN)/msgfmt" |
53 CMAKE_OPTIONS += -DBIN_INSTALL_DIR="$(USRBIN)" |
57 CMAKE_OPTIONS += -DBIN_INSTALL_DIR="$(USRBIN)" |
54 CMAKE_OPTIONS += -DEXEC_INSTALL_DIR="$(USRBIN)" |
58 CMAKE_OPTIONS += -DEXEC_INSTALL_DIR="$(USRBIN)" |