diff --git a/ohos_Mqtt/src/main/cpp/mqtt_napi/CMakeLists.txt b/ohos_Mqtt/src/main/cpp/mqtt_napi/CMakeLists.txt index 076f245342f6f1cd2df1ee2563192f5b289bf7b3..10a94524b06fb0faa7b6b8023069e52ad54172b0 100644 --- a/ohos_Mqtt/src/main/cpp/mqtt_napi/CMakeLists.txt +++ b/ohos_Mqtt/src/main/cpp/mqtt_napi/CMakeLists.txt @@ -1,28 +1,6 @@ -# -# Tencent is pleased to support the open source community by making -# MMKV available. -# -# Copyright (C) 2019 THL A29 Limited, a Tencent company. -# All rights reserved. -# -# Licensed under the BSD 3-Clause License (the "License"); you may not use -# this file except in compliance with the License. You may obtain a copy of -# the License at -# -# https://opensource.org/licenses/BSD-3-Clause -# -# 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. -# - # Sets the minimum version of CMake required to build the native library. - cmake_minimum_required(VERSION 3.4.1) - set(can_use_assembler TRUE) enable_language(ASM) IF("${OHOS_ARCH}" STREQUAL "arm64-v8a") @@ -30,16 +8,8 @@ IF("${OHOS_ARCH}" STREQUAL "arm64-v8a") SET(CMAKE_ASM_FLAGS "${CFLAGS} ${ASM_OPTIONS} -march=armv8+crypto -D__OHOS__") ENDIF() - - project(mqtt_napi) -# Creates and names a library, sets it as either STATIC -# or SHARED, and provides the relative paths to its source code. -# You can define multiple libraries, and CMake builds them for you. -# Gradle automatically packages shared libraries with your APK. - - add_library(mqtt_napi STATIC base_context.cpp