Example #1
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("V=1")
    cflags = ""
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/libglib/glib-2.0')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libglib')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpcre3')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/freetype')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/freetype/freetype2')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/fontconfig')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/fontconfig/fontconfig')

    libs = ""
    libs += " -L" + ops.path_join(iopc.getSdkPath(), 'lib')
    libs += " -lglib-2.0 -lpcre"
    libs += " -lfreetype"
    libs += " -lfontconfig -luuid"
    extra_conf.append("GLIB_CFLAGS=" + cflags)
    extra_conf.append("GLIB_LIBS=" + libs)
    extra_conf.append("FREETYPE_CFLAGS=" + cflags)
    extra_conf.append("FREETYPE_LIBS=" + libs)
    extra_conf.append("FONTCONFIG_CFLAGS=" + cflags)
    extra_conf.append("FONTCONFIG_LIBS=" + libs)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #2
0
def MAIN_CONFIGURE(args):
    set_global(args)

    print ops.getEnv("PKG_CONFIG_PATH")
    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--enable-egl-backend=yes")
    extra_conf.append("--enable-wayland-compositor=yes")
    extra_conf.append("--disable-glibtest")
    '''
    includes = '-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libglib/glib-2.0')
    includes += ' -I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libglib')
    extra_conf.append('CFLAGS=' + includes)
    extra_conf.append('GLIB_CFLAGS=' + includes)
    libs = ' -lglib-2.0 -lgobject-2.0 -lgio-2.0 -lgthread-2.0 -lgmodule-2.0 -lpthread -lz -lffi -lpcre'
    extra_conf.append('LIBS=-L' + ops.path_join(iopc.getSdkPath(), 'lib') + libs)
    extra_conf.append('GLIB_LIBS=-L' + ops.path_join(iopc.getSdkPath(), 'lib') + libs)
    extra_conf.append("--disable-documentation")

    extra_conf.append('FFI_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libffi') + '"')
    extra_conf.append('FFI_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lffi"')
    extra_conf.append('EXPAT_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libexpat') + '"')
    extra_conf.append('EXPAT_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lexpat"')
    extra_conf.append('LIBXML_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libxml2') + '"')
    extra_conf.append('LIBXML_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lxml2"')
    '''
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #3
0
def MAIN_CONFIGURE(args):
    set_global(args)
    cc_sysroot = ops.getEnv("CC_SYSROOT")

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("V=1")
    #extra_conf.append("--disable-silent-rules")
    extra_conf.append("--enable-hardware-optimizations")
    extra_conf.append("--disable-arm-neon")
    extra_conf.append("--disable-mips-msa")
    extra_conf.append("--disable-intel-sse")
    extra_conf.append("--disable-powerpc-vsx")
    extra_conf.append('FFI_CFLAGS=' + cflags)
    extra_conf.append('FFI_LIBS=' + libs)
    extra_conf.append('EXPAT_CFLAGS=' + cflags)
    extra_conf.append('EXPAT_LIBS=' + libs)
    extra_conf.append('LIBXML_CFLAGS=' + cflags)
    extra_conf.append('LIBXML_LIBS=' + libs)
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #4
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--disable-x11")
    extra_conf.append("--host=" + cc_host)

    cc_sysroot = ops.getEnv("CC_SYSROOT")
    cflags = ""
    cflags += " -I" + ops.path_join(cc_sysroot, 'usr/include')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libz')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpcre3')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpixman')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libxml2')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libglib')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/libglib/glib-2.0')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/mesa')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/mesa/EGL')

    libs = ""
    libs += " -L" + ops.path_join(cc_sysroot, 'lib')
    libs += " -L" + ops.path_join(cc_sysroot, 'usr/lib')
    libs += " -L" + ops.path_join(iopc.getSdkPath(), 'lib')
    libs += " -lz -lglib-2.0 -lpcre -lffi -lpixman-1 -lxml2 -lgbm -ldrm -lEGL -lgbm -lexpat -lglapi"
    extra_conf.append("CFLAGS=" + cflags)
    extra_conf.append("LDFLAGS=" + libs)
    extra_conf.append("--enable-egl=yes")
    #extra_conf.append("--enable-glx=yes")
    #extra_conf.append("--enable-opengl")
    #extra_conf.append("--enable-virglrenderer")

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #5
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    '''
    extra_conf.append("--enable-intel")
    extra_conf.append("--enable-radeon")
    extra_conf.append("--enable-amdgpu")
    extra_conf.append("--enable-nouveau")
    extra_conf.append("--enable-vmwgfx")
    extra_conf.append("--enable-freedreno")
    extra_conf.append("--enable-vc4")
    if install_test_utils:
        extra_conf.append("--enable-install-test-programs")
    extra_conf.append('FFI_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libffi') + '"')
    extra_conf.append('FFI_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lffi"')
    extra_conf.append('EXPAT_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libexpat') + '"')
    extra_conf.append('EXPAT_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lexpat"')
    extra_conf.append('LIBXML_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libxml2') + '"')
    extra_conf.append('LIBXML_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lxml2"')
    '''
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #6
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--disable-ipv6")
    extra_conf.append("--enable-optimizations")

    cc_sysroot = ops.getEnv("CC_SYSROOT")
    cflags = ""
    cflags += " -I" + ops.path_join(cc_sysroot, 'usr/include')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libz')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpcre3')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpixman')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libxml2')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libglib')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/libglib/glib-2.0')

    libs = ""
    libs += " -L" + ops.path_join(cc_sysroot, 'lib')
    libs += " -L" + ops.path_join(cc_sysroot, 'usr/lib')
    libs += " -L" + ops.path_join(iopc.getSdkPath(), 'lib')
    libs += " -lz -lglib-2.0 -lpcre -lffi -lpixman-1 -lxml2"
    #extra_conf.append("--extra-cflags=" + cflags)
    #extra_conf.append("--extra-ldflags=" + libs)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #7
0
def MAIN_CONFIGURE(args):
    set_global(args)

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--disable-selinux")
    extra_conf.append("--enable-opengl")
    extra_conf.append("--disable-gles1")
    extra_conf.append("--enable-gles2")
    extra_conf.append("--disable-dri3")
    extra_conf.append("--disable-lmsensors")
    extra_conf.append("--disable-glx")
    extra_conf.append("--disable-xa")
    extra_conf.append("--enable-dri")
    extra_conf.append("--disable-va")
    extra_conf.append("--enable-egl")
    extra_conf.append("--enable-driglx-direct")
    extra_conf.append("--enable-glx-tls")
    extra_conf.append("--enable-texture-float")
    if iopc.is_selected_package(PKG_WAYLAND):
        extra_conf.append("-with-platforms=drm,wayland")
        extra_conf.append('WAYLAND_CLIENT_CFLAGS=' + cflags)
        extra_conf.append('WAYLAND_CLIENT_LIBS=' + libs)
        extra_conf.append('WAYLAND_SERVER_CFLAGS=' + cflags)
        extra_conf.append('WAYLAND_SERVER_LIBS=' + libs)
    else:
        extra_conf.append("-with-platforms=drm,surfaceless")
    extra_conf.append("--with-gallium-drivers=svga,swrast")
    #extra_conf.append("--with-gallium-drivers=nouveau,swrast,radeonsi")
    extra_conf.append("--enable-gbm")
    #extra_conf.append("--enable-osmesa")
    extra_conf.append("--enable-gallium-osmesa")
    extra_conf.append("--without-vulkan-drivers")
    #extra_conf.append("--with-dri-drivers=swrast")
    extra_conf.append("--with-dri-drivers=swrast,i915,i965,nouveau")
    extra_conf.append("--enable-shared-glapi")
    extra_conf.append("--enable-gallium-tests")

    extra_conf.append('ZLIB_CFLAGS=' + cflags)
    extra_conf.append('ZLIB_LIBS=' + libs)
    extra_conf.append('EXPAT_CFLAGS=' + cflags)
    extra_conf.append('EXPAT_LIBS=' + libs)
    extra_conf.append('LIBDRM_CFLAGS=' + cflags)
    extra_conf.append('LIBDRM_LIBS=' + libs)
    extra_conf.append('I915_CFLAGS=' + cflags)
    extra_conf.append('I915_LIBS=' + libs)
    extra_conf.append('NOUVEAU_CFLAGS=' + cflags)
    extra_conf.append('NOUVEAU_LIBS=' + libs)
    extra_conf.append('NVVIEUX_CFLAGS=' + cflags)
    extra_conf.append('NVVIEUX_LIBS=' + libs)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #8
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    #extra_conf.append("--prefix=" + install_tmp_dir)
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #9
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--disable-efiemu")
    extra_conf.append("--disable-werror")
    extra_conf.append("--prefix=" + install_dir)
    print extra_conf
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #10
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("V=1")
    extra_conf.append("--disable-x11")
    extra_conf.append("--disable-gles1")
    extra_conf.append("--enable-gles2")
    extra_conf.append("--enable-egl")
    extra_conf.append("--enable-libdrm")
    #extra_conf.append("--enable-vg")

    cc_sysroot = ops.getEnv("CC_SYSROOT")
    cflags = ""
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/mesa')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libglu')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libdrm')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/libdrm/libdrm')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    'usr/include/libdrm/libkms')
    cflags += " -DMESA_EGL_NO_X11_HEADERS"

    libs = ""
    libs += " -L" + ops.path_join(cc_sysroot, 'lib')
    libs += " -L" + ops.path_join(cc_sysroot, 'usr/lib')
    libs += " -L" + ops.path_join(iopc.getSdkPath(), 'lib')
    libs += " -ldrm -lEGL -lglapi -lGLESv2 -lOSMesa -lGLU -lgbm -lxml2 -lexpat -lz -lffi -lfreetype"

    extra_conf.append('GL_CFLAGS=' + cflags)
    extra_conf.append('GL_LIBS=' + libs)
    extra_conf.append('EGL_CFLAGS=' + cflags)
    extra_conf.append('EGL_LIBS=' + libs)
    extra_conf.append('GLESV2_CFLAGS=' + cflags)
    extra_conf.append('GLESV2_LIBS=' + libs)
    extra_conf.append('DRM_CFLAGS=' + cflags)
    extra_conf.append('DRM_LIBS=' + libs)
    extra_conf.append('GBM_CFLAGS=' + cflags)
    extra_conf.append('GBM_LIBS=' + libs)
    extra_conf.append('OSMESA_CFLAGS=' + cflags)
    extra_conf.append('OSMESA_LIBS=' + libs)

    #extra_conf.append('GLEW_CFLAGS=' + cflags)
    #extra_conf.append('GLEW_LIBS=' + libs)
    extra_conf.append('GLU_CFLAGS=' + cflags)
    extra_conf.append('GLU_LIBS=' + libs)
    extra_conf.append('FREETYPE2_CFLAGS=' + libs)
    extra_conf.append('FREETYPE2_LIBS=' + libs)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #11
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--disable-docs")
    extra_conf.append("--disable-x11")
    extra_conf.append("--enable-wayland")
    extra_conf.append("--with-x-locale-root=/usr/local/share/X11/locale")
    extra_conf.append('WAYLAND_CFLAGS="-I ' + ops.path_join(iopc.getSdkPath(), 'usr/include/wayland') + '"')
    extra_conf.append('WAYLAND_LIBS="-L ' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lwayland-client"')
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #12
0
def MAIN_CONFIGURE(args):
    set_global(args)

    print "SDK include path:" + iopc.getSdkPath()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--without-libjpeg")
    extra_conf.append("--without-libtiff")
    extra_conf.append("--disable-gtk-doc-html")
    extra_conf.append("--disable-glibtest")

    cflags = ""
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), "usr/include/libxml2")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    "usr/include/libglib/glib-2.0")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    "usr/include/libglib/gio-unix-2.0")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), "usr/include/libglib")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), "usr/include/libpcre3")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpng')
    extra_conf.append("BASE_DEPENDENCIES_CFLAGS=" + cflags)
    extra_conf.append("GLIB_CFLAGS=" + cflags)
    extra_conf.append("CFLAGS=" + cflags)

    libs = ""
    libs += " -L" + ops.path_join(iopc.getSdkPath(), "lib")
    libs += " -lxml2 -lglib-2.0 -lpng -lz"
    extra_conf.append("BASE_DEPENDENCIES_LIBS=" + libs)
    extra_conf.append("GLIB_LIBS=" + libs)
    extra_conf.append("LIBS=" + libs)
    '''
    extra_conf.append("--disable-libmount")
    extra_conf.append("--disable-fam")
    extra_conf.append("--with-pcre=system")
    extra_conf.append('ZLIB_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libz') + '"')
    extra_conf.append('ZLIB_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lz"')
    extra_conf.append('LIBFFI_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libffi') + '"')
    extra_conf.append('LIBFFI_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'usr/lib') + ' -lffi"')
    extra_conf.append('PCRE_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libpcre3') + '"')
    extra_conf.append('PCRE_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lpcre"')
    extra_conf.append("glib_cv_stack_grows=no")
    extra_conf.append("glib_cv_uscore=no")
    extra_conf.append("glib_cv_pcre_has_unicode=yes")
    '''

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #13
0
def MAIN_CONFIGURE(args):
    set_global(args)

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append('FFI_CFLAGS=' + cflags)
    extra_conf.append('FFI_LIBS=' + libs)
    extra_conf.append('EXPAT_CFLAGS=' + cflags)
    extra_conf.append('EXPAT_LIBS=' + libs)
    extra_conf.append('LIBXML_CFLAGS=' + cflags)
    extra_conf.append('LIBXML_LIBS=' + libs)
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #14
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--enable-glib=yes")
    extra_conf.append("--enable-cogl-path=yes")
    extra_conf.append("--enable-gdk-pixbuf=yes")
    extra_conf.append("--enable-gles1=no")
    extra_conf.append("--enable-gles2=yes")
    extra_conf.append("--enable-cogl-gles2=yes")
    extra_conf.append("--enable-kms-egl-platform=yes")

    if iopc.is_selected_package(PKG_WAYLAND):
        extra_conf.append("--enable-wayland-egl-platform=yes")
        extra_conf.append("--enable-wayland-egl-server=yes")
    else:
        extra_conf.append("--enable-wayland-egl-platform=no")
        extra_conf.append("--enable-wayland-egl-server=no")

    extra_conf.append("--enable-gl=no")
    extra_conf.append("--enable-examples-install=no")
    extra_conf.append("--enable-cairo=no")
    extra_conf.append("--enable-cogl-gst=no")
    extra_conf.append("--disable-gtk-doc")
    extra_conf.append("--disable-glibtest")

    libs = ""
    libs += " -L" + ops.path_join(iopc.getSdkPath(), "lib")
    libs += " -lglib-2.0 -lgobject-2.0 -lgmodule-2.0 -lgdk_pixbuf-2.0 -lgbm -ldrm -lEGL"
    extra_conf.append("COGL_DEP_LIBS=" + libs)

    cflags = ""
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), "usr/include/libxml2")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    "usr/include/libglib/glib-2.0")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(),
                                    "usr/include/libglib/gio-unix-2.0")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), "usr/include/libglib")
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), "usr/include/libpcre3")
    #cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpng')
    extra_conf.append("COGL_DEP_CFLAGS=" + cflags)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #15
0
def MAIN_CONFIGURE(args):
    set_global(args)

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--disable-systemd")
    extra_conf.append("CFLAGS=" + cflags)
    extra_conf.append("LIBS=" + libs)
    extra_conf.append("EXPAT_CFLAGS=" + cflags)
    extra_conf.append("EXPAT_LIBS=" + libs)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #16
0
def MAIN_CONFIGURE(args):
    set_global(args)

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    if install_test_utils:
        extra_conf.append("--enable-install-test-programs")

    if selected_platform_panda :
        extra_conf.append("--disable-intel")
        extra_conf.append("--disable-radeon")
        extra_conf.append("--disable-amdgpu")
        extra_conf.append("--disable-nouveau")
        extra_conf.append("--disable-vmwgfx")
        extra_conf.append("--disable-freedreno")
        extra_conf.append("--disable-vc4")
        extra_conf.append("--enable-omap")
        extra_conf.append("--disable-cairo-tests")

    if selected_platform_j3455 :
        extra_conf.append("--enable-intel")
        extra_conf.append("--enable-radeon")
        extra_conf.append("--enable-amdgpu")
        extra_conf.append("--enable-nouveau")
        extra_conf.append("--enable-vmwgfx")
        extra_conf.append("--disable-freedreno")
        extra_conf.append("--disable-vc4")
        extra_conf.append("--disable-omap")
        extra_conf.append("--disable-cairo-tests")

        extra_conf.append('FFI_CFLAGS=' + cflags)
        extra_conf.append('FFI_LIBS=' + libs)
        extra_conf.append('EXPAT_CFLAGS=' + cflags)
        extra_conf.append('EXPAT_LIBS=' + libs)
        extra_conf.append('LIBXML_CFLAGS=' + cflags)
        extra_conf.append('LIBXML_LIBS=' + libs)
        extra_conf.append('PCIACCESS_CFLAGS=' + cflags)
        extra_conf.append('PCIACCESS_LIBS=' + libs)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #17
0
def MAIN_CONFIGURE(args):
    set_global(args)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)

    cflags = ""
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/mesa')

    libs = ""
    libs += " -L" + ops.path_join(iopc.getSdkPath(), 'lib')
    libs += " -ldrm -lEGL -lglapi -lGLESv2"

    extra_conf.append('GL_CFLAGS=' + cflags)
    extra_conf.append('GL_LIBS=' + libs)

    iopc.configure(tarball_dir, extra_conf)

    return True
Example #18
0
def MAIN_CONFIGURE(args):
    set_global(args)

    #extra_conf.append("--extra-cflags=" + cflags)
    #extra_conf.append("--extra-ldflags=" + libs)

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--disable-docs")
    extra_conf.append("--disable-x11")
    if selected_wayland :
        extra_conf.append("--enable-wayland")
    else:
        extra_conf.append("--disable-wayland")
    #extra_conf.append("--with-x-locale-root=/usr/local/share/X11/locale")
    #extra_conf.append('WAYLAND_CFLAGS=' + cflags)
    #extra_conf.append('WAYLAND_LIBS=' + libs)
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #19
0
def MAIN_CONFIGURE(args):
    set_global(args)

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--disable-silent-rules")
    extra_conf.append("--with-host-scanner")
    extra_conf.append("--disable-documentation")
    extra_conf.append('FFI_CFLAGS=' + cflags)
    extra_conf.append('FFI_LIBS=' + libs)
    extra_conf.append('EXPAT_CFLAGS=' + cflags)
    extra_conf.append('EXPAT_LIBS=' + libs)
    extra_conf.append('LIBXML_CFLAGS=' + cflags)
    extra_conf.append('LIBXML_LIBS=' + libs)
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #20
0
def MAIN_CONFIGURE(args):
    set_global(args)
    cc_sysroot = ops.getEnv("CC_SYSROOT")

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("V=1")
    #extra_conf.append("--enable-libxml2")
    extra_conf.append("FREETYPE_CFLAGS=" + cflags)
    extra_conf.append("FREETYPE_LIBS=" + libs)
    extra_conf.append("UUID_CFLAGS=" + cflags)
    extra_conf.append("UUID_LIBS=" + libs)
    extra_conf.append('EXPAT_CFLAGS=' + cflags)
    extra_conf.append('EXPAT_LIBS=' + libs)
    #extra_conf.append('LIBXML_CFLAGS=-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libxml2'))
    #extra_conf.append('LIBXML_LIBS=-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lxml2')
    '''
    #extra_conf.append("--disable-silent-rules")
    extra_conf.append("--enable-hardware-optimizations")
    extra_conf.append("--disable-arm-neon")
    extra_conf.append("--disable-mips-msa")
    extra_conf.append("--disable-intel-sse")
    extra_conf.append("--disable-powerpc-vsx")
    extra_conf.append('FFI_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libffi') + '"')
    extra_conf.append('FFI_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lffi"')
    extra_conf.append('EXPAT_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libexpat') + '"')
    extra_conf.append('EXPAT_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lexpat"')
    extra_conf.append('LIBXML_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/libxml2') + '"')
    extra_conf.append('LIBXML_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lxml2"')
    '''
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #21
0
def MAIN_CONFIGURE(args):
    set_global(args)

    cflags = iopc.get_includes()
    libs = iopc.get_libs()
    print cflags
    print libs
    print "SDK include path:" + iopc.getSdkPath()

    extra_conf = []
    extra_conf.append("--without-x")
    extra_conf.append("--enable-png=yes")
    extra_conf.append("--enable-xml=yes")
    extra_conf.append("--enable-glesv2=yes")
    extra_conf.append("--enable-drm=no") # TODO: need to fix
    extra_conf.append("--enable-ft=yes")
    extra_conf.append("--enable-fc=yes")
    extra_conf.append("--enable-gallium=no")
    extra_conf.append("--enable-egl=yes")
    extra_conf.append("--disable-ps") 
    extra_conf.append("--disable-pdf")
    extra_conf.append("--enable-svg=no")
    extra_conf.append("--enable-pthread=yes")
    extra_conf.append("--enable-gobject=yes")
    extra_conf.append("--enable-interpreter=no")
    extra_conf.append("--disable-gtk-doc")
    extra_conf.append("--host=" + cc_host)

    '''
    cflags = ""
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpixman')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libpng')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/mesa')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libdrm')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libdrm/libdrm')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libudev')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/freetype')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/freetype/freetype2')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/fontconfig')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libz')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libxml2')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libglib')
    cflags += " -I" + ops.path_join(iopc.getSdkPath(), 'usr/include/libglib/glib-2.0')

    libs = ""
    libs += " -L" + ops.path_join(iopc.getSdkPath(), 'lib')
    libs += " -lpixman-1 -lpng -lGLESv2 -ldrm -lfreetype -lfontconfig -lEGL -lgbm -lexpat -lglapi -lffi -lz -lxml2 -lpthread -luuid"
    libs += " -lglib-2.0 -lwayland-client -lwayland-server -lpcre"
    '''
    extra_conf.append('pixman_CFLAGS=' + cflags)
    extra_conf.append('pixman_LIBS=' + libs)
    extra_conf.append('png_REQUIRES=libpng')
    extra_conf.append('png_CFLAGS=' + cflags)
    extra_conf.append('png_LIBS=' + libs)
    extra_conf.append('glesv2_CFLAGS=' + cflags)
    extra_conf.append('glesv2_LIBS=' + libs)
    extra_conf.append('drm_CFLAGS=' + cflags)
    extra_conf.append('drm_LIBS=' + libs)
    extra_conf.append('FREETYPE_CFLAGS=' + cflags)
    extra_conf.append('FREETYPE_LIBS=' + libs)
    extra_conf.append('FONTCONFIG_CFLAGS=' + cflags)
    extra_conf.append('FONTCONFIG_LIBS=' + libs)
    #extra_conf.append('egl_CFLAGS=-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/mesa -I' + ops.path_join(iopc.getSdkPath(),'usr/include/libudev')) + ' -DMESA_EGL_NO_X11_HEADERS')
    extra_conf.append('egl_CFLAGS=' + cflags)
    extra_conf.append('egl_LIBS=' + libs)
    extra_conf.append('glib_CFLAGS=' + cflags)
    extra_conf.append('glib_LIBS=' + libs)
    extra_conf.append('CFLAGS=' + cflags)
    extra_conf.append('LIBS=' + libs)
    #extra_conf.append('CAIRO_CFLAGS=' + cflags)
    #extra_conf.append('CFLAGS=' + cflags)
    #libs = ""
    #libs += ' -L' + ops.path_join(iopc.getSdkPath(), 'lib') 
    #libs += ' -lz -lxml2 -lpthread -ldrm -luuid' 
    #extra_conf.append('CAIRO_LIBS=' + libs)
    #extra_conf.append('LIBS=' + libs)
    #extra_conf.append('egl_LIBS=-L' + ops.path_join(iopc.getSdkPath(), 'lib') + ' -lEGL -lgbm -ldrm -lexpat -lwayland-client -lglapi -lffi -lwayland-server')
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #22
0
def MAIN_CONFIGURE(args):
    set_global(args)

    cflags = iopc.get_includes()
    libs = iopc.get_libs()

    extra_conf = []
    extra_conf.append("--host=" + cc_host)
    extra_conf.append("--disable-devdocs")
    extra_conf.append("--disable-colord")
    extra_conf.append("--disable-xwayland")
    extra_conf.append("--disable-xwayland-test")
    extra_conf.append("--disable-x11-compositor")
    extra_conf.append("--enable-drm-compositor")
    extra_conf.append("--disable-fbdev-compositor")
    extra_conf.append("--disable-rdp-compositor")
    extra_conf.append("--disable-headless-compositor")
    extra_conf.append("--disable-screen-sharing")
    extra_conf.append("--disable-vaapi-recorder")
    extra_conf.append("--disable-dbus")
    extra_conf.append("--disable-systemd-login")
    extra_conf.append("--disable-junit-xml")
    extra_conf.append("--disable-ivi-shell")
    extra_conf.append("--disable-systemd-notify")
    extra_conf.append("--enable-clients")
    extra_conf.append("--disable-simple-clients")
    extra_conf.append("--enable-weston-launch")
    extra_conf.append("--disable-setuid-install")
    extra_conf.append("--enable-egl")
    extra_conf.append("--disable-wcap-tools")
    extra_conf.append("--enable-simple-egl-clients")
    extra_conf.append("--enable-demo-clients-install")
    #extra_conf.append("--with-host-scanner")
    #extra_conf.append("--disable-documentation")
    extra_conf.append('LIBDRM_CFLAGS=' + cflags)
    extra_conf.append('LIBDRM_LIBS=' + libs)
    extra_conf.append('DRM_COMPOSITOR_CFLAGS=' + cflags)
    extra_conf.append('DRM_COMPOSITOR_LIBS=' + libs)
    extra_conf.append('LIBINPUT_BACKEND_CFLAGS=' + cflags)
    extra_conf.append('LIBINPUT_BACKEND_LIBS=' + libs)
    extra_conf.append('COMPOSITOR_CFLAGS=' + cflags)
    extra_conf.append('COMPOSITOR_LIBS=' + libs)
    extra_conf.append('DRM_COMPOSITOR_GBM_CFLAGS=' + cflags)
    extra_conf.append('DRM_COMPOSITOR_GBM_LIBS=' + libs)
    #extra_conf.append('WAYLAND_PROTOCOLS_CFLAGS="-I' + ops.path_join(iopc.getSdkPath(), 'usr/include/wayland') + '"')
    #extra_conf.append('WAYLAND_PROTOCOLS_LIBS="-L' + ops.path_join(iopc.getSdkPath(), 'lib') + '"')
    extra_conf.append('WAYLAND_COMPOSITOR_CFLAGS=' + cflags)
    extra_conf.append('WAYLAND_COMPOSITOR_LIBS=' + libs)
    extra_conf.append('PIXMAN_CFLAGS=' + cflags)
    extra_conf.append('PIXMAN_LIBS=' + libs)
    extra_conf.append('PNG_CFLAGS=' + cflags)
    extra_conf.append('PNG_LIBS=' + libs)
    extra_conf.append('CAIRO_CFLAGS=' + cflags)
    extra_conf.append('CAIRO_LIBS=' + libs)
    extra_conf.append('TEST_CLIENT_CFLAGS=' + cflags)
    extra_conf.append('TEST_CLIENT_LIBS=' + libs)
    extra_conf.append('CLIENT_CFLAGS=' + cflags)
    extra_conf.append('CLIENT_LIBS=' + libs)
    extra_conf.append('SERVER_CFLAGS=' + cflags)
    extra_conf.append('SERVER_LIBS=' + libs)
    extra_conf.append('WESTON_INFO_CFLAGS=' + cflags)
    extra_conf.append('WESTON_INFO_LIBS=' + libs)
    extra_conf.append('XKBCOMMON_COMPOSE_CFLAGS=' + cflags)
    extra_conf.append('XKBCOMMON_COMPOSE_LIBS=' + libs)
    extra_conf.append('EGL_CFLAGS=' + cflags)
    extra_conf.append('EGL_LIBS=' + libs)
    extra_conf.append('EGL_TESTS_CFLAGS=' + cflags)
    extra_conf.append('EGL_TESTS_LIBS=' + libs)
    extra_conf.append('WAYLAND_COMPOSITOR_EGL_CFLAGS=' + cflags)
    extra_conf.append('WAYLAND_COMPOSITOR_EGL_LIBS=' + libs)
    extra_conf.append('SIMPLE_EGL_CLIENT_CFLAGS=' + cflags)
    extra_conf.append('SIMPLE_EGL_CLIENT_LIBS=' + libs)
    iopc.configure(tarball_dir, extra_conf)

    return True
Example #23
0
def MAIN_CONFIGURE(args):
    set_global(args)

    job_count = ops.getEnv("BUILD_JOBS_COUNT")

    extra_conf = []
    '''
    #extra_conf.append("--cross-compile")
    #extra_conf.append("-C -V")
    #extra_conf.append("--cross-answers=cc.txt")
    #extra_conf.append("--hostcc=" + cc_host)
    extra_conf.append("--abi-check-disable")
    extra_conf.append("--disable-rpath")
    extra_conf.append("--bundled-libraries=NONE")
    #extra_conf.append("--cross-execute='qemu-arm-static -L /usr/arm-linux-gnu'")
    extra_conf.append("--jobs=" + job_count)
    extra_conf.append("--disable-gnutls")
    #extra_conf.append("--private-libraries=NONE")

    extra_conf.append("--without-gettext")
    extra_conf.append("--without-systemd")
    extra_conf.append("--without-ad-dc")
    extra_conf.append("--without-ads")
    extra_conf.append("--without-winbind")
    extra_conf.append("--without-ldap")
    extra_conf.append("--without-pam")
    extra_conf.append("--without-pie")
    extra_conf.append("--without-fam")
    extra_conf.append("--without-dmapi")
    extra_conf.append("--without-automount")
    extra_conf.append("--without-utmp")
    extra_conf.append("--without-dnsupdate")
    extra_conf.append("--without-acl-support")
    extra_conf.append("--without-quotas")
    extra_conf.append("--without-cluster-support")
    extra_conf.append("--disable-glusterfs")
    extra_conf.append("--without-profiling-data")
    extra_conf.append("--without-libarchive")
    extra_conf.append("--without-regedit")
    extra_conf.append("--without-ntvfs-fileserver")
    extra_conf.append("--disable-python")
    extra_conf.append("--disable-cups")
    extra_conf.append("--disable-iprint")
    extra_conf.append("--disable-avahi")
    '''
    extra_conf.append("--disable-python")
    extra_conf.append("--without-ad-dc")
    extra_conf.append("--without-acl-support")
    extra_conf.append("--without-ldap")
    extra_conf.append("--without-ads")
    extra_conf.append("--without-pam")
    extra_conf.append("--without-gettext")

    extra_conf.append("--jobs=" + job_count)
    extra_conf.append("--without-systemd")
    extra_conf.append("--without-regedit")
    extra_conf.append("--without-cluster-support")
    extra_conf.append("--without-ntvfs-fileserver")
    extra_conf.append("--without-winbind")
    extra_conf.append("--disable-glusterfs")
    extra_conf.append("--disable-cups")
    extra_conf.append("--disable-iprint")
    extra_conf.append("--disable-avahi")
    extra_conf.append("--without-automount")
    extra_conf.append("--without-dnsupdate")
    extra_conf.append("--without-fam")
    extra_conf.append("--without-dmapi")
    extra_conf.append("--without-quotas")
    extra_conf.append("--without-profiling-data")
    extra_conf.append("--without-utmp")
    extra_conf.append("--without-libarchive")
    #extra_conf.append("--enable-developer")

    print extra_conf
    #iopc.waf(tarball_dir, extra_conf)
    iopc.configure(tarball_dir, extra_conf)

    return True