components/gnome/clutter-gtk/Makefile
changeset 6391 ef24ec0b3a52
child 7293 a449e2e641be
equal deleted inserted replaced
6390:b453d81e6fdc 6391:ef24ec0b3a52
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 BUILD_BITS =            32_and_64
       
    27 # All components using gobject-introspection must be built with gcc as
       
    28 # gobject-introspection does not produce correct results when using Studio.
       
    29 COMPILER =              gcc
       
    30 include ../../../make-rules/shared-macros.mk
       
    31 
       
    32 COMPONENT_NAME=		clutter-gtk
       
    33 COMPONENT_VERSION=	1.6.4
       
    34 COMPONENT_ARCHIVE_HASH=	\
       
    35 	sha256:52fc9b35d301737a221bb6c24abafafe23e4bd0a5e2060bba3860b6cac7b32aa
       
    36 COMPONENT_BUGDB=        library/clutter
       
    37 
       
    38 TPNO=			24627
       
    39 
       
    40 # Requires cogl modules - disable till we get the fixed cogl on build servers
       
    41 TEST_TARGET = $(SKIP_TEST)
       
    42 
       
    43 # Needs gobject-introspection, not available on S11.
       
    44 ifeq ($(BUILD_TYPE), evaluation)
       
    45 BUILD_32_and_64=
       
    46 INSTALL_32_and_64=
       
    47 PUBLISH_STAMP=
       
    48 endif
       
    49 
       
    50 include $(WS_MAKE_RULES)/gnome-component.mk
       
    51 
       
    52 CONFIGURE_OPTIONS += --disable-static
       
    53 # Required for other components.
       
    54 CONFIGURE_OPTIONS += --enable-introspection
       
    55 CONFIGURE_OPTIONS += --enable-shared
       
    56 CONFIGURE_OPTIONS += --with-pic
       
    57 
       
    58 # Delete this when build servers are installed with the dependencies
       
    59 COGL_BASE = $(WS_COMPONENTS)/gnome/cogl/build/prototype/$(MACH)
       
    60 PKG_CONFIG_PATHS.32 += $(COGL_BASE)/usr/lib/pkgconfig/
       
    61 PKG_CONFIG_PATHS.64 += $(COGL_BASE)/usr/lib/$(MACH64)/pkgconfig/
       
    62 PKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
       
    63 
       
    64 LD_OPTIONS.32 += -L $(COGL_BASE)/usr/lib
       
    65 LD_OPTIONS.64 += -L $(COGL_BASE)/usr/lib/$(MACH64)
       
    66 LD_OPTIONS += $(LD_OPTIONS.$(BITS))
       
    67 
       
    68 CPPFLAGS += -I$(COGL_BASE)/usr/include/cogl
       
    69 
       
    70 CLUTTER_BASE = $(WS_COMPONENTS)/gnome/clutter/build/prototype/$(MACH)
       
    71 PKG_CONFIG_PATHS.32 += $(CLUTTER_BASE)/usr/lib/pkgconfig/
       
    72 PKG_CONFIG_PATHS.64 += $(CLUTTER_BASE)/usr/lib/$(MACH64)/pkgconfig/
       
    73 PKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
       
    74 
       
    75 LD_OPTIONS.32 += -L $(CLUTTER_BASE)/usr/lib
       
    76 LD_OPTIONS.64 += -L $(CLUTTER_BASE)/usr/lib/$(MACH64)
       
    77 LD_OPTIONS += $(LD_OPTIONS.$(BITS))
       
    78 
       
    79 CPPFLAGS += -I$(CLUTTER_BASE)/usr/include/clutter-1.0 \
       
    80 	    -I/usr/include/json-glib-1.0
       
    81 
       
    82 COMPONENT_BUILD_ENV  += \
       
    83 	XDG_DATA_DIRS="$(COGL_BASE)/usr/share/:$(CLUTTER_BASE)/usr/share/:/usr/share/"
       
    84 
       
    85 COMPONENT_BUILD_ENV += LD_LIBRARY_PATH_32="$(COGL_BASE)$(USRLIB.$(BITS)):$(CLUTTER_BASE)$(USRLIB.$(BITS)):$(BUILD_DIR_32)/clutter-gtk/.libs"
       
    86 COMPONENT_BUILD_ENV += LD_LIBRARY_PATH_64="$(COGL_BASE)$(USRLIB.$(BITS)):$(CLUTTER_BASE)$(USRLIB.$(BITS)):$(BUILD_DIR_64)/clutter-gtk/.libs"
       
    87 
       
    88 # Work around pkgdepend bug which doesn't resolve dependencies from
       
    89 # the local workspace repo. - 15708323
       
    90 DEPENDED += $(WS_TOP)/components/gnome/cogl/build/manifest-$(MACH)-cogl.depend
       
    91 DEPENDED += $(WS_TOP)/components/gnome/clutter/build/manifest-$(MACH)-clutter.depend
       
    92 
       
    93 # Temporary until dependencies are all on build machines
       
    94 REQUIRED_PACKAGES += $(shell $(GSED) -n 's/REQUIRED_PACKAGES +=//p' ../cogl/Makefile)
       
    95 REQUIRED_PACKAGES += $(shell $(GSED) -n -e '/GSED/d' -e 's/REQUIRED_PACKAGES +=//p' ../clutter/Makefile)
       
    96 #end Delete
       
    97 
       
    98 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
       
    99 REQUIRED_PACKAGES += library/desktop/cairo
       
   100 REQUIRED_PACKAGES += library/desktop/clutter
       
   101 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
       
   102 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
       
   103 REQUIRED_PACKAGES += library/desktop/gtk3
       
   104 REQUIRED_PACKAGES += library/glib2
       
   105 REQUIRED_PACKAGES += library/graphics/cogl
       
   106 REQUIRED_PACKAGES += system/library/math