• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14cmake_minimum_required(VERSION 3.20)
15project(CommunicationNetStack)
16
17set(CMAKE_CXX_STANDARD 23)
18
19include_directories(
20    ../../ace/napi/interfaces/kits
21    ../../ace/napi/native_engine/impl/quickjs
22    ../../ace/napi/
23    ../../../third_party/node/src
24)
25
26include_directories(utils/napi_utils/include)
27include_directories(utils/common_utils/include)
28include_directories(utils/event_manager/include)
29include_directories(utils/base_context/include)
30include_directories(utils/base_async_work/include)
31include_directories(utils/module_template/include)
32
33include_directories(../../../for_linux)
34
35include_directories(../../../utils/native/base/include/)
36
37include_directories(utils/log/include)
38include_directories(../../../base/hiviewdfx/hilog/interfaces/native/innerkits/include)
39
40include_directories(test/napi/common)
41
42include_directories(../../../foundation/ace/ace_engine/frameworks/base/utils)
43include_directories(../../../foundation/ace/napi/interfaces/inner_api)
44include_directories(../../../for_linux)
45
46include_directories(../../../third_party/quickjs)
47
48include_directories(../../../third_party/googletest/googletest/include)
49include_directories(../../../third_party/libuv/include)
50
51link_directories(../../../utils/native/base/cmake-build-debug/src/securec)
52
53link_directories(../../../foundation/ace/napi/cmake-build-debug)
54
55link_directories(../../../third_party/quickjs)
56
57link_directories(../../../third_party/googletest/cmake-build-debug/googlemock/gtest)
58link_directories(../../../third_party/googletest/cmake-build-debug/googlemock)
59link_directories(../../../third_party/libuv/cmake-build-debug)
60
61link_directories(cmake-build-debug/utils)
62
63# add_subdirectory(frameworks/js/builtin)
64add_subdirectory(utils)
65add_subdirectory(test/napi/http)
66add_subdirectory(test/napi/socket)
67add_subdirectory(test/napi/fetch)
68add_subdirectory(test/napi/websocket)
69add_subdirectory(test/utils/napi_utils/unittest)