ENDIF(NOT CMAKE_BUILD_TYPE)
# Compiler flags
-SET(EXTRA_FLAGS "-fvisibility=hidden -Wall -Wextra")
+SET(EXTRA_FLAGS "-Wall -Wextra")
SET(CMAKE_C_FLAGS_PROFILING "-O2 -flto ${EXTRA_FLAGS}")
SET(CMAKE_CXX_FLAGS_PROFILING "-O2 -flto -std=c++11 ${EXTRA_FLAGS}")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${EXTRA_FLAGS}")
SET(TARGET_MANIFEST_TEST "manifest-test")
ADD_DEFINITIONS("-DPROJECT_TAG=\"TPK_BACKEND\"")
-ADD_DEFINITIONS("-DTPK_BACKEND_EXPORT_API=__attribute__((visibility(\"default\")))")
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
INCLUDE(FindPkgConfig)
} // namespace
-extern "C" TPK_BACKEND_EXPORT_API int pkg_plugin_on_load(pkg_plugin_set* set) {
+int pkg_plugin_on_load(pkg_plugin_set* set) {
if (set == nullptr)
return -1;
set->plugin_on_unload = PluginOnUnload;
#ifndef TPK_STEP_FILESYSTEM_STEP_CREATE_SYMBOLIC_LINK_H_
#define TPK_STEP_FILESYSTEM_STEP_CREATE_SYMBOLIC_LINK_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <manifest_parser/utils/logging.h>
#include <common/app_installer.h>
namespace tpk {
namespace filesystem {
-class TPK_BACKEND_EXPORT_API StepCreateSymbolicLink
- : public common_installer::Step {
+class StepCreateSymbolicLink : public common_installer::Step {
public:
using Step::Step;
Status process() override;
#ifndef TPK_STEP_FILESYSTEM_STEP_TPK_PATCH_ICONS_H_
#define TPK_STEP_FILESYSTEM_STEP_TPK_PATCH_ICONS_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <boost/filesystem/path.hpp>
#include <common/step/step.h>
* Fixes location of icons for tpk apps if icons are not located in
* "shared/res/" directory.
*/
-class TPK_BACKEND_EXPORT_API StepTpkPatchIcons : public common_installer::Step {
+class StepTpkPatchIcons : public common_installer::Step {
public:
using Step::Step;
#ifndef TPK_STEP_FILESYSTEM_STEP_TPK_PREPARE_PACKAGE_DIRECTORY_H_
#define TPK_STEP_FILESYSTEM_STEP_TPK_PREPARE_PACKAGE_DIRECTORY_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <manifest_parser/utils/logging.h>
#include <boost/filesystem/path.hpp>
* - signature*.xml
* - res/
*/
-class TPK_BACKEND_EXPORT_API StepTpkPreparePackageDirectory
- : public common_installer::Step {
+class StepTpkPreparePackageDirectory : public common_installer::Step {
public:
using Step::Step;
#ifndef TPK_STEP_FILESYSTEM_STEP_TPK_UPDATE_PACKAGE_DIRECTORY_H_
#define TPK_STEP_FILESYSTEM_STEP_TPK_UPDATE_PACKAGE_DIRECTORY_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <boost/filesystem/path.hpp>
#include <manifest_parser/utils/logging.h>
* This step will, additionally to base step actions, ,aintain backup
* of directories from point 1) for operation rollback scenario.
*/
-class TPK_BACKEND_EXPORT_API StepTpkUpdatePackageDirectory
- : public StepTpkPreparePackageDirectory {
+class StepTpkUpdatePackageDirectory : public StepTpkPreparePackageDirectory {
public:
using StepTpkPreparePackageDirectory::StepTpkPreparePackageDirectory;
#ifndef TPK_STEP_PKGMGR_STEP_MANIFEST_ADJUSTMENT_H_
#define TPK_STEP_PKGMGR_STEP_MANIFEST_ADJUSTMENT_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <manifest_parser/utils/logging.h>
#include <boost/filesystem/path.hpp>
namespace tpk {
namespace pkgmgr {
-class TPK_BACKEND_EXPORT_API StepManifestAdjustment
- : public common_installer::Step {
+class StepManifestAdjustment : public common_installer::Step {
public:
using Step::Step;
#ifndef TPK_STEP_SECURITY_STEP_TPK_RECOVER_SIGNATURE_H_
#define TPK_STEP_SECURITY_STEP_TPK_RECOVER_SIGNATURE_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <common/step/security/step_recover_signature.h>
#include <boost/filesystem/path.hpp>
namespace tpk {
namespace security {
-class TPK_BACKEND_EXPORT_API StepTpkRecoverSignature
+class StepTpkRecoverSignature
: public common_installer::security::StepRecoverSignature {
public:
using StepRecoverSignature::StepRecoverSignature;
#ifndef TPK_TPK_APP_QUERY_INTERFACE_H_
#define TPK_TPK_APP_QUERY_INTERFACE_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <common/app_query_interface.h>
#include <sys/types.h>
namespace tpk {
-class TPK_BACKEND_EXPORT_API TpkAppQueryInterface
- : public common_installer::AppQueryInterface {
+class TpkAppQueryInterface : public common_installer::AppQueryInterface {
private:
std::string GetPkgIdFromPath(const std::string& path) const override;
std::string GetManifestFileName() const override;
#ifndef TPK_TPK_INSTALLER_H_
#define TPK_TPK_INSTALLER_H_
-#ifndef TPK_BACKEND_EXPORT_API
-#define TPK_BACKEND_EXPORT_API
-#endif
-
#include <common/app_installer.h>
#include <common/pkgmgr_interface.h>
#include <manifest_parser/utils/logging.h>
* packages. Pkgmgr request is parsed within and sequence of steps is built to
* be run.
*/
-class TPK_BACKEND_EXPORT_API TpkInstaller
- : public common_installer::AppInstaller {
+class TpkInstaller : public common_installer::AppInstaller {
public:
explicit TpkInstaller(common_installer::PkgMgrPtr pkgmgr);
~TpkInstaller();