Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
Add cmake files to support Tizen gbs build (#105)
Browse files Browse the repository at this point in the history
libtuv-DCO-1.0-Signed-off-by: Haesik, Jun [email protected]
  • Loading branch information
haesik authored and yichoi committed Jan 3, 2018
1 parent 6257f8f commit ea971bc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cmake/config/config_noarch-tizen.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2018 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include(CMakeForceCompiler)

set(CMAKE_SYSTEM_NAME Linux)
32 changes: 32 additions & 0 deletions cmake/option/option_noarch-tizen.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2018 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# linux common
include("cmake/option/option_unix_common.cmake")
include("cmake/option/option_linux_common.cmake")

# gbs-tizen specific
if(DEFINED TARGET_BOARD)
if(${TARGET_BOARD} STREQUAL "rpi3")
set(FLAGS_COMMON
${FLAGS_COMMON}
"-mfloat-abi=softfp"
"-mfpu=neon-vfpv4"
)
else()
message(FATAL_ERROR "TARGET_BOARD=`${TARGET_BOARD}` is unknown to make")
endif()
else()
message(FATAL_ERROR "TARGET_BOARD is undefined")
endif()

0 comments on commit ea971bc

Please sign in to comment.