AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} THEME_PLUGIN_SRCS)
ADD_LIBRARY(${TARGET_TIZEN_THEME_PLUGIN} SHARED ${THEME_PLUGIN_SRCS})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_TIZEN_THEME_PLUGIN} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+TARGET_LINK_LIBRARIES(${TARGET_TIZEN_THEME_PLUGIN} PRIVATE ${TARGET_TIZEN_THEME})
+TARGET_INCLUDE_DIRECTORIES(${TARGET_TIZEN_THEME_PLUGIN} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}../)
APPLY_PKG_CONFIG(${TARGET_TIZEN_THEME_PLUGIN} PUBLIC
GLIB_DEPS
--- /dev/null
+// Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved\r
+// Use of this source code is governed by an apache 2.0 license that can be\r
+// found in the LICENSE file.\r
+\r
+#include "theme_info_builder.h"\r
+\r
+namespace ttm {\r
+\r
+ThemeInfoBuilder::ThemeInfoBuilder(std::string id) {\r
+\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::SetVersion(std::string ver) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::SetToolVersion(std::string ver) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::SetTitle(std::string title) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::SetPreview(std::string path) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::SetDescription(std::string desc) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::SetResolution(std::string resolution) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::PutExtra(std::string key, std::string value) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfoBuilder& ThemeInfoBuilder::PutExtraArray(std::string key, std::string value[]) {\r
+ return *this;\r
+}\r
+\r
+ThemeInfo ThemeInfoBuilder::Build() {\r
+ return {};\r
+}\r
+\r
+} // namespace ttm
\ No newline at end of file
#include <memory>\r
#include <string>\r
\r
-#include "theme_info.h"\r
+#include "theme/loader/theme_info.h"\r
\r
namespace ttm {\r
\r
class ThemeInfoBuilder {\r
public:\r
- explicit TheInfoBuilder(std::string id);\r
+ explicit ThemeInfoBuilder(std::string id);\r
ThemeInfoBuilder& SetVersion(std::string ver);\r
ThemeInfoBuilder& SetToolVersion(std::string ver);\r
ThemeInfoBuilder& SetTitle(std::string title);\r
ThemeInfoBuilder& SetDescription(std::string desc);\r
ThemeInfoBuilder& SetResolution(std::string resolution);\r
ThemeInfoBuilder& PutExtra(std::string key, std::string value);\r
- ThemeInfoBuilder& PutExtraArray(std::string key, std::string[] value);\r
+ ThemeInfoBuilder& PutExtraArray(std::string key, std::string value[]);\r
ThemeInfo Build();\r
\r
};\r
--- /dev/null
+// Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved\r
+// Use of this source code is governed by an apache 2.0 license that can be\r
+// found in the LICENSE file.\r
+\r
+#include "theme_parser.h"\r
+#include "theme/loader/theme_info.h"\r
+\r
+namespace ttm {\r
+\r
+ThemeInfo ThemeParser::Inflate(std::string json) {\r
+ ThemeInfo info;\r
+ return info;\r
+}\r
+\r
+int ThemeParser::Commit(ThemeOperation operation, const ThemeInfo& theme) {\r
+ return 0;\r
+}\r
+\r
+} // namespace ttm
\ No newline at end of file
#include <memory>\r
#include <string>\r
\r
-#include "theme_info.h"\r
+#include "theme/loader/theme_info.h"\r
\r
namespace ttm {\r
\r
REMOVE\r
};\r
\r
- Themeinfo Inflate(std::string json);\r
+ ThemeInfo Inflate(std::string json);\r
int Commit(ThemeOperation operation, const ThemeInfo& theme);\r
};\r
\r