-# Copyright (c) 2017 Samsung Electronics Co., Ltd.
+# Copyright (c) 2019 Samsung Electronics Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
pkgconfigdir = $(libdir)/pkgconfig
-if ENABLE_CXX03_ABI
-pkgconfig_DATA = dali-core-cxx03.pc
-else
pkgconfig_DATA = dali-core.pc
-endif
-
MAINTAINERCLEANFILES = \
aclocal.m4 \
-# Copyright (c) 2018 Samsung Electronics Co., Ltd.
+# Copyright (c) 2019 Samsung Electronics Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
[enable_lock_backtrace=$enableval],
[enable_lock_backtrace=no])
-AC_ARG_ENABLE([cxx03_abi],
- [AC_HELP_STRING([--enable-cxx03-abi],
- [Specify abi for the build])],
- [enable_cxx03_abi=$enableval],
- [enable_cxx03_abi=no])
-
AC_ARG_ENABLE([rename_so],
[AC_HELP_STRING([--enable-rename-so],
[Specify whether so file is renamed or not])],
[enable_rename_so=$enableval],
[enable_rename_so=yes])
-AM_CONDITIONAL([ENABLE_CXX03_ABI], [test x$enable_cxx03_abi = xyes])
AM_CONDITIONAL([ENABLE_RENAME_SO], [test x$enable_rename_so = xyes])
-if test "x$enable_cxx03_abi" = "xyes"; then
- DALI_CFLAGS="$DALI_CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"
-fi
-
if test "x$enable_debug" = "xyes"; then
DALI_CFLAGS="$DALI_CFLAGS -DDEBUG_ENABLED"
fi
devincludepath=${includedir}
AC_SUBST(devincludepath)
-AC_CONFIG_FILES([Makefile dali-core/Makefile])
-
-if test "x$enable_cxx03_abi" = "xyes"; then
-AC_CONFIG_FILES([dali-core-cxx03.pc])
-fi
-
-if test "x$enable_cxx03_abi" != "xyes"; then
-AC_CONFIG_FILES([dali-core.pc])
-fi
+AC_CONFIG_FILES([
+ Makefile
+ dali-core/Makefile
+ dali-core.pc
+])
AC_OUTPUT
Data Dir (Read Only): $dataReadOnlyDir
Backtrace: $enable_backtrace
ScopedLock Backtrace: $enable_lock_backtrace
- C++03 ABI: $enable_cxx03_abi
Rename so file: $enable_rename_so
"
+++ /dev/null
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-apiversion=@DALI_VERSION@
-libdir=@libdir@
-includedir=@devincludepath@
-
-Name: Dali 3D engine
-Description: Cross platform 3D Engine
-Version: ${apiversion}
-Requires:
-Libs: -L${libdir} -ldali-core-cxx03
-Cflags: -I${includedir} -std=c++11
-# Copyright (c) 2018 Samsung Electronics Co., Ltd.
+# Copyright (c) 2019 Samsung Electronics Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
dali_core_includes = \
-I../../..
-if ENABLE_CXX03_ABI
-
-lib_LTLIBRARIES = libdali-core.la
-
-libdali_core_la_SOURCES = $(DALI_CORE_LA_SOURCES)
-libdali_core_la_CXXFLAGS = $(DALI_CORE_LA_CXXFLAGS)
-libdali_core_la_LIBADD = $(DALI_CORE_LA_LIBADD)
-
-else
-
lib_LTLIBRARIES = libdali-core-cxx11.la
libdali_core_cxx11_la_SOURCES = $(DALI_CORE_LA_SOURCES)
libdali_core_cxx11_la_CXXFLAGS = $(DALI_CORE_LA_CXXFLAGS)
libdali_core_cxx11_la_LIBADD = $(DALI_CORE_LA_LIBADD)
-endif
-
# Install headers under the correct subdirectories
platformabstractiondir = $(includedir)/dali/integration-api
platformabstractioneventsdir = $(includedir)/dali/integration-api/events
$(dali_core_includes) \
$(DALI_CFLAGS)
-if ENABLE_CXX03_ABI
-
-linker_test_DEPENDENCIES = libdali-core.la
-linker_test_LDADD = \
- libdali-core.la
-
-if ENABLE_RENAME_SO
-#rename
-install: install-am
- rm -rf $(libdir)/libdali-core.so
- rm -rf $(libdir)/libdali-core-cxx03.so
- ln -s $(libdir)/libdali-core.so.0.0.* $(libdir)/libdali-core-cxx03.so
-endif
-
-else
-
linker_test_DEPENDENCIES = libdali-core-cxx11.la
linker_test_LDADD = \
libdali-core-cxx11.la
ln -s $(libdir)/libdali-core-cxx11.so.0.0.* $(libdir)/libdali-core.so
endif
-endif
BuildRequires: pkgconfig(libtzplatform-config)
%endif
-%if 0%{?tizen_version_major} < 4
-%define disable_cxx03_build 1
-%endif
-
%description
DALi 3D Engine
-%if !0%{?disable_cxx03_build}
-##############################
-# cxx03
-##############################
-%package cxx03
-Summary: DALi 3D Engine with cxx03 abi
-Provides: %{name}-cxx03 = %{version}-%{release}
-
-%description cxx03
-DALi 3D Engine with cxx03 abi with cxx03 abi
-
-##############################
-# devel-cxx03
-##############################
-%package devel-cxx03
-Summary: Development components for DALi 3D Engine with cxx03 abi
-Group: Development/Building
-Requires: %{name}-cxx03 = %{version}-%{release}
-Requires: %{name}-integration-devel-cxx03 = %{version}-%{release}
-
-%description devel-cxx03
-Development components for DALi 3D Engine - public headers and package config
-
-##############################
-# integration-devel-cxx03
-##############################
-%package integration-devel-cxx03
-Summary: Integration development package for DALi 3D Engine witch cxx03 abi
-Group: Development/Building
-Requires: %{name}-cxx03 = %{version}-%{release}
-
-%description integration-devel-cxx03
-Integration development package for DALi 3D Engine - headers for integrating with an adaptor/platform abstraction library.
-%endif
-
##############################
# devel
##############################
mv pkgconfig/dali-core.pc %{_builddir}/%{name}-%{version}/build/tizen/dali-core.pc
popd
-%if !0%{?disable_cxx03_build}
-make clean
-
-./configure \
- --program-prefix=%{?_program_prefix} \
- --prefix=%{_prefix} \
- --exec-prefix=%{_exec_prefix} \
- --bindir=%{_bindir} \
- --sbindir=%{_sbindir} \
- --sysconfdir=%{_sysconfdir} \
- --datadir=%{_datadir} \
- --includedir=%{_includedir} \
- --libdir=%{_libdir} \
- --libexecdir=%{_libexecdir} \
- --localstatedir=%{_localstatedir} \
- --sharedstatedir=%{_sharedstatedir} \
- --mandir=%{_mandir} \
- --enable-cxx03-abi=yes \
-%if 0%{?enable_debug}
- --enable-debug \
-%endif
-%if 0%{?enable_trace}
- --enable-trace \
-%endif
- --infodir=%{_infodir} \
- --enable-rename-so=no
-
-make %{?jobs:-j%jobs}
-%endif
-
##############################
# Installation
##############################
pushd %{buildroot}%{_libdir}
rm -rf libdali-core.so
rm -rf libdali-core-cxx11.so
-%if !0%{?disable_cxx03_build}
-ln -s libdali-core.so.0.0.* libdali-core-cxx03.so
-%endif
ln -s libdali-core-cxx11.so.0.0.* libdali-core.so
popd
# Files in Binary Packages
##############################
-%if !0%{?disable_cxx03_build}
-%files cxx03
-%if 0%{?enable_dali_smack_rules}
-%manifest dali.manifest-smack
-%else
-%manifest dali.manifest
-%endif
-%defattr(-,root,root,-)
-%{_libdir}/libdali-core.so.*
-%{_libdir}/libdali-core-cxx03.so
-%license LICENSE
-%endif
-
%files
%if 0%{?enable_dali_smack_rules}
%manifest dali.manifest-smack
%{_libdir}/libdali-core.so
%license LICENSE
-%if !0%{?disable_cxx03_build}
-%files devel-cxx03
-%defattr(-,root,root,-)
-%{_libdir}/pkgconfig/dali-core-cxx03.pc
-%{dev_include_path}/dali/public-api/*
-%{dev_include_path}/dali/devel-api/*
-%{dev_include_path}/dali/doc/*
-
-%files integration-devel-cxx03
-%defattr(-,root,root,-)
-%{_includedir}/dali/integration-api/*
-%endif
-
%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/dali-core.pc