diff --git a/hdc/api/test/storytest/test.py b/hdc/api/test/storytest/test.py new file mode 100644 index 0000000000000000000000000000000000000000..de2fef06dddb462b839364ab0dc98f4f31803e06 --- /dev/null +++ b/hdc/api/test/storytest/test.py @@ -0,0 +1,42 @@ +# !/usr/bin/env python3 +# coding=utf-8 +""" +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +* +* HDF is dual licensed: you can use it either under the terms of +* the GPL, or the BSD license, at your option. +* See the LICENSE file in the root of this repository for complete details. +""" +import os +import sys + +def do_test(demoPath,projectName): + ret = os.popen("node ../../../hdc/API-Scan/scan.js -d " + demoPath + '/'+ projectName + "/test_project -o ./" + projectName) + result = ret.read() + #print(result) + + if "result.xlsx" not in result: + print("error compile failed") + return + else: + print("compile ok") + + os.chdir(projectName) + os.system("npx mocha test.js") + + +if __name__ == "__main__": + work_path = os.path.split(sys.argv[0])[0] + os.chdir(work_path) + if len(sys.argv) >= 2: + for fn in sys.argv[1:]: + if os.path.isdir(fn): + do_test(os.getcwd(),fn) + os.chdir("..") + else: + print("error",fn,"is not exist") + else: + for fn in os.listdir("."): + if os.path.isdir(fn): + do_test(os.getcwd(),fn) + os.chdir("..") diff --git a/hdc/api/test/storytest/test_demo/result.xlsx b/hdc/api/test/storytest/test_demo/result.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..46b25f65110d785e09818f56b1c8b804c245e52e Binary files /dev/null and b/hdc/api/test/storytest/test_demo/result.xlsx differ diff --git a/hdc/api/test/storytest/test_demo/test.js b/hdc/api/test/storytest/test_demo/test.js new file mode 100644 index 0000000000000000000000000000000000000000..5a281223ef53c5b9f987b2e9dab21893f9770242 --- /dev/null +++ b/hdc/api/test/storytest/test_demo/test.js @@ -0,0 +1,103 @@ +/* +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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. +*/ +var assert = require("assert"); +var fs = require("fs"); +var xlsx = require("xlsx"); + +var workBook = xlsx.readFile('result.xlsx'); +let sheet1 = workBook.Sheets[workBook.SheetNames[0]]; //获取sheet1中function内容 +let data = JSON.stringify(xlsx.utils.sheet_to_json(sheet1)); + +let sheet2 = workBook.Sheets[workBook.SheetNames[1]]; //获取sheet2中include内容 +let data1 = JSON.stringify(xlsx.utils.sheet_to_json(sheet2)); + +describe('test_demo function', function () { + it('Whether result.xlsx exists', function () { + var flag = fs.existsSync('result.xlsx'); + assert.deepStrictEqual(flag, true); + }); + + it('function length', function () { + array_str = data.substring(1,data.length-1).split(","); + assert.deepEqual(array_str.length,92); + }); + + it('sheet name', function () { + assert.deepEqual(workBook.SheetNames[0],'sheet1'); + }); + + it('contain function', function () { + flag = data.includes("SwappyVk_initAndGetRefreshCycleDuration"); + assert.deepEqual(flag,true); + flag = data.includes("android_app_set_motion_event_filter"); + assert.deepEqual(flag,true); + flag = data.includes("TuningFork_startFidelityParamDownloadThread"); + assert.deepEqual(flag,true); + flag = data.includes("AImageDecoderHeaderInfo_getDataSpace"); + assert.deepEqual(flag,true); + flag = data.includes("ACaptureSessionPhysicalOutput_create"); + assert.deepEqual(flag,true); + flag = data.includes("__android_log_buf_write"); + assert.deepEqual(flag,true); + flag = data.includes("AMediaFormat_new"); + assert.deepEqual(flag,true); + flag = data.includes("android_app_set_motion_event_filter"); + assert.deepEqual(flag,true); + flag = data.includes("android_tag_socket"); + assert.deepEqual(flag,true); + flag = data.includes("ANeuralNetworksCompilation_getPreferredMemoryAlignmentForOutput"); + assert.deepEqual(flag,true); + flag = data.includes("ASensorEventQueue_requestAdditionalInfoEvents"); + assert.deepEqual(flag,true); + flag = data.includes("AThermal_registerThermalStatusListener"); + assert.deepEqual(flag,true); + }); + +}); + +describe('test_demo include', function () { + it('function length', function () { + array_str = data1.substring(1,data.length-1).split(","); + assert.deepEqual(array_str.length,30); + }); + + it('sheet name', function () { + assert.deepEqual(workBook.SheetNames[1],'sheet2'); + }); + + it('contain function', function () { + flag = data1.includes("GameActivity.h"); + assert.deepEqual(flag,true); + flag = data1.includes("NdkCameraCaptureSession.h"); + assert.deepEqual(flag,true); + flag = data1.includes("dlext.h"); + assert.deepEqual(flag,true); + flag = data1.includes("file_descriptor_jni.h"); + assert.deepEqual(flag,true); + flag = data1.includes("input.h"); + assert.deepEqual(flag,true); + flag = data1.includes("native_activity.h"); + assert.deepEqual(flag,true); + flag = data1.includes("multinetwork.h"); + assert.deepEqual(flag,true); + flag = data1.includes("surface_texture.h"); + assert.deepEqual(flag,true); + // flag = data1.includes("api-level.h"); + // assert.deepEqual(flag,true); + }); + +}); + + diff --git a/hdc/api/test/storytest/test_demo/test_project/test.c b/hdc/api/test/storytest/test_demo/test_project/test.c new file mode 100644 index 0000000000000000000000000000000000000000..168df075183b7abce7cf9e0e1002add02ba9c732 --- /dev/null +++ b/hdc/api/test/storytest/test_demo/test_project/test.c @@ -0,0 +1,113 @@ +#include "multinetwork.h" +#include "NeuralNetworks.h" +#include "permission_manager.h" +#include "sensor.h" +#include "obb.h" +#include "surface_texture.h" +#include "sync.h" +#include "thermal.h" +#include "trace.h" +#include "api-level.h" +#include "GameActivity.h" + +using namespace std; +namespace ApiScan +{ + bool AMediaCodec_getName(std::string &reason) + { + return true; + } + bool AMediaCrypto_delete(std::string &reason) + { + return true; + } + bool AMediaDrm_encrypt(std::string &reason) + { + return true; + } + bool AMediaExtractor_delete(std::string &reason) + { + return true; + } + bool AMediaFormat_new(std::string &reason) + { + return true; + } + bool AMediaMuxer_new(std::string &reason) + { + return true; + } + bool ASharedMemory_getSize(std::string &reason) + { + return true; + } + bool AMidiDevice_getType(std::string &reason) + { + return true; + } + bool AMidiInputPort_open(std::string &reason) + { + return true; + } + bool AMidiOutputPort_open(std::string &reason) + { + return true; + } + bool ANativeActivity_finish(std::string &reason) + { + return true; + } + bool ANativeWindow_toSurface(std::string &reason) + { + return true; + } + bool ASurfaceControl_create(std::string &reason) + { + return true; + } + bool ASurfaceTransaction_setCrop(std::string &reason) + { + return true; + } + bool AHardwareBuffer_allocate(std::string &reason) + { + return true; + } + bool ANativeWindow_release(std::string &reason) + { + return true; + } + bool AIBinder_Weak_lt(std::string &reason) + { + return true; + } + bool AParcel_readInt32(std::string &reason) + { + return true; + } + bool AStatus_getMessage(std::string &reason) + { + return true; + } + bool android_getprocdns(std::string &reason) + { + return true; + } + bool android_res_nquery(std::string &reason) + { + return true; + } + bool android_setprocnetwork(std::string &reason) + { + return true; + } + bool android_tag_socket(std::string &reason) + { + return true; + } + bool android_untag_socket(std::string &reason) + { + return true; + } + +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo/test_project/test.cpp b/hdc/api/test/storytest/test_demo/test_project/test.cpp new file mode 100644 index 0000000000000000000000000000000000000000..d515f388d945fb7f1f3806bb7807b2dc9fd30a6a --- /dev/null +++ b/hdc/api/test/storytest/test_demo/test_project/test.cpp @@ -0,0 +1,159 @@ +#include +#include +#include +#include +#include +#include +#include "native_activity.h" +#include "hardware_buffer_jni.h" +#include "native_window.h" +#include "binder_auto_utils.h" + +using namespace std; +namespace ApiScan +{ + bool android_get_application_target_sdk_version(std::string &reason) + { + return true; + } + bool android_get_device_api_level(std::string &reason) + { + return true; + } + bool AImageDecoderFrameInfo_create(std::string &reason) + { + return true; + } + bool AImageDecoderHeaderInfo_getDataSpace(std::string &reason) + { + return true; + } + bool AImageDecoder_getHeaderInfo(std::string &reason) + { + return true; + } + bool AAssetDir_getNextFileName(std::string &reason) + { + return true; + } + bool AAsset_getLength(std::string &reason) + { + return true; + } + bool AAudioStreamBuilder_setDirection(std::string &reason) + { + return true; + } + bool AAudioStream_getFormat(std::string &reason) + { + return true; + } + bool AndroidBitmap_getInfo(std::string &reason) + { + return true; + } + bool ACameraCaptureSession_close(std::string &reason) + { + return true; + } + bool ACameraDevice_getId(std::string &reason) + { + return true; + } + bool ACameraMetadata_free(std::string &reason) + { + return true; + } + bool ACameraOutputTarget_free(std::string &reason) + { + return true; + } + bool ACaptureRequest_free(std::string &reason) + { + return true; + } + bool ACaptureSessionOutputContainer_add(std::string &reason) + { + return true; + } + bool ACaptureSessionOutput_create(std::string &reason) + { + return true; + } + bool ACaptureSessionPhysicalOutput_create(std::string &reason) + { + return true; + } + bool ACaptureSessionSharedOutput_create(std::string &reason) + { + return true; + } + bool AChoreographerFrameCallbackData_getFrameTimelineExpectedPresentationTimeNanos(std::string &reason) + { + return true; + } + bool AChoreographer_postFrameCallbackDelayed(std::string &reason) + { + return true; + } + bool AConfiguration_diff(std::string &reason) + { + return true; + } + bool android_dlopen_ext(std::string &reason) + { + return true; + } + bool AFileDescriptor_create(std::string &reason) + { + return true; + } + bool AFontMatcher_match(std::string &reason) + { + return true; + } + bool AFont_getAxisValue(std::string &reason) + { + return true; + } + bool ASystemFontIterator_close(std::string &reason) + { + return true; + } + bool AInputEvent_getType(std::string &reason) + { + return true; + } + bool AInputQueue_fromJava(std::string &reason) + { + return true; + } + bool AKeyEvent_getDownTime(std::string &reason) + { + return true; + } + bool AMotionEvent_getFlags(std::string &reason) + { + return true; + } + bool __android_log_buf_write(std::string &reason) + { + return true; + } + bool ALooper_pollOnce(std::string &reason) + { + return true; + } + bool AImageReader_delete(std::string &reason) + { + return true; + } + bool AImage_getFormat(std::string &reason) + { + return true; + } + bool AMediaCodecCryptoInfo_delete(std::string &reason) + { + return true; + } +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo/test_project/test.h b/hdc/api/test/storytest/test_demo/test_project/test.h new file mode 100644 index 0000000000000000000000000000000000000000..e9d934da45e845ffab08e3c1f51ed4b286003657 --- /dev/null +++ b/hdc/api/test/storytest/test_demo/test_project/test.h @@ -0,0 +1,51 @@ +#include +#include +#include +#include "android/bitmap.h" +#include +#include +#include +#include +#include +#include + +using namespace std; +namespace ApiScan +{ + class GameActivity + { + public: + void ANeuralNetworksBurst_free(int num); + void ANeuralNetworksCompilation_getPreferredMemoryAlignmentForOutput(int num); + void ANeuralNetworksDevice_getType(int num); + void ANeuralNetworksEvent_free(int num); + void ANeuralNetworksExecution_getDuration(int num); + void ANeuralNetworksMemoryDesc_finish(int num); + void ANeuralNetworksMemory_createFromAHardwareBuffer(int num); + void ANeuralNetworksModel_getSupportedOperationsForDevices(int num); + void ANeuralNetworks_getDevice(int num); + void APermissionManager_checkPermission(int num); + void ASensorEventQueue_requestAdditionalInfoEvents(int num); + void ASensorManager_createHardwareBufferDirectChannel(int num); + void ASensor_getHighestDirectReportRateLevel(int num); + void AObbInfo_getPackageName(int num); + }; + void AObbScanner_getObbInfo(int num); + void AStorageManager_getMountedObbPath(int num); + void ASurfaceTexture_acquireANativeWindow(int num); + void sync_file_info_free(int num); + void sync_merge(int num); + void AThermal_registerThermalStatusListener(int num); + void ATrace_endAsyncSection(int num); + void Swappy_setThreadFunctions(int num); + void Swappy_versionString(int num); + void SwappyGL_setBufferStuffingFixWait(int num); + void SwappyVk_initAndGetRefreshCycleDuration(int num); + void GameActivityPointerAxes_getAxisValue(int num); + void android_app_set_motion_event_filter(int num); + void android_main(int num); + void Paddleboat_processGameActivityKeyInputEvent(int num); + void GameTextInput_setInputConnection(int num); + void TuningFork_startFidelityParamDownloadThread(int num); + void ASurfaceTransactionStats_getLatchTime(int num); +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/result.xlsx b/hdc/api/test/storytest/test_demo1/result.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..fc5c77d7aa8849f9c5cbeeb266b34b3adfe67059 Binary files /dev/null and b/hdc/api/test/storytest/test_demo1/result.xlsx differ diff --git a/hdc/api/test/storytest/test_demo1/test.js b/hdc/api/test/storytest/test_demo1/test.js new file mode 100644 index 0000000000000000000000000000000000000000..bd39c1278835de02110944ea28281fa6833e13b2 --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test.js @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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. +*/ +var assert = require("assert"); +var fs = require("fs"); +var xlsx = require("xlsx"); + +var workBook = xlsx.readFile('result.xlsx'); +let sheet1 = workBook.Sheets[workBook.SheetNames[0]]; //获取sheet1中function内容 +let data = JSON.stringify(xlsx.utils.sheet_to_json(sheet1)); + +let sheet2 = workBook.Sheets[workBook.SheetNames[1]]; //获取sheet2中include内容 +let data1 = JSON.stringify(xlsx.utils.sheet_to_json(sheet2)); + +describe('test_demo1 function', function () { + it('Whether result.xlsx exists', function () { + var flag = fs.existsSync('result.xlsx'); + assert.deepStrictEqual(flag, true); + }); + + it('function length', function () { + array_str = data.substring(1,data.length-1).split(","); + assert.deepEqual(array_str.length,1); + assert.deepStrictEqual(JSON.stringify(array_str),"[\"\"]"); + }); + + it('sheet name', function () { + assert.deepEqual(workBook.SheetNames[0],'sheet1'); + }); + +}); + +describe('test_demo1 include', function () { + it('function length', function () { + array_str1 = data1.substring(1,data1.length-1).split(","); + assert.deepEqual(array_str1.length,1); + assert.deepStrictEqual(JSON.stringify(array_str1),"[\"\"]"); + }); + + it('sheet name', function () { + assert.deepEqual(workBook.SheetNames[1],'sheet2'); + }); + +}); + + diff --git a/hdc/api/test/storytest/test_demo1/test_project/demo.js b/hdc/api/test/storytest/test_demo1/test_project/demo.js new file mode 100644 index 0000000000000000000000000000000000000000..b1e8bfb2d8728a9d78b5028cd68893a2e6bd844a --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/demo.js @@ -0,0 +1,37 @@ +#include +#include +#include +#include +#include +#include +#include + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void AImageDecoder_getHeaderInfo(int num); + void AAssetDir_getNextFileName(int num); + void AAsset_getLength(int num); + void AAudioStreamBuilder_setDirection(int num); + void AAudioStream_getFormat(int num); + public: + void AConfiguration_diff(int num); + void android_dlopen_ext(int num); + void AFileDescriptor_create(int num); + void AFontMatcher_match(int num); + void AFont_getAxisValue(int num); + void ASystemFontIterator_close(int num); + void AInputEvent_getType(int num); + void AInputQueue_fromJava(int num); + void AKeyEvent_getDownTime(int num); + void AMotionEvent_getFlags(int num); + }; + void Swappy_setThreadFunctions(int num); + void Swappy_versionString(int num); + void SwappyGL_setBufferStuffingFixWait(int num); + void SwappyVk_initAndGetRefreshCycleDuration(int num); + void GameActivityPointerAxes_getAxisValue(int num); + +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/test_project/test.C b/hdc/api/test/storytest/test_demo1/test_project/test.C new file mode 100644 index 0000000000000000000000000000000000000000..4d94b0106175f1336d4d2fd9ffd36b87f509f6a5 --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/test.C @@ -0,0 +1,26 @@ +#include "sensor.h" +#include "obb.h" +#include "surface_texture.h" +#include "sync.h" +#include "thermal.h" +#include "trace.h" +#include "api-level.h" +#include "GameActivity.h" + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void AMediaCodec_getName(int num); + void AMediaCrypto_delete(int num); + void AMediaDrm_encrypt(int num); + void AMediaExtractor_delete(int num); + void AMediaFormat_new(int num); + void AMediaMuxer_new(int num); + }; + void SwappyGL_setBufferStuffingFixWait(int num); + void SwappyVk_initAndGetRefreshCycleDuration(int num); + void GameActivityPointerAxes_getAxisValue(int num); + void android_app_set_motion_event_filter(int num); +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/test_project/test.c++ b/hdc/api/test/storytest/test_demo1/test_project/test.c++ new file mode 100644 index 0000000000000000000000000000000000000000..4fd14df707dc45093ef51f64f656e95d29a6fc01 --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/test.c++ @@ -0,0 +1,24 @@ +#include "api-level.h" +#include "GameActivity.h" + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void ACameraCaptureSession_close(int num); + void ACameraDevice_getId(int num); + void ACameraMetadata_free(int num); + public: + void AIBinder_Weak_lt(int num); + void AParcel_readInt32(int num); + void AStatus_getMessage(int num); + void android_getprocdns(int num); + void android_res_nquery(int num); + void android_setprocnetwork(int num); + }; + void GameActivityPointerAxes_getAxisValue(int num); + void android_app_set_motion_event_filter(int num); + void android_main(int num); + +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/test_project/test.cxx b/hdc/api/test/storytest/test_demo1/test_project/test.cxx new file mode 100644 index 0000000000000000000000000000000000000000..6a9d78cb0ae4151ccbf60f7c1be669ae7ca299fe --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/test.cxx @@ -0,0 +1,32 @@ +#include "multinetwork.h" +#include "NeuralNetworks.h" +#include "permission_manager.h" +#include "sensor.h" +#include "obb.h" + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void ACameraDevice_getId(int num); + void ACameraMetadata_free(int num); + public: + void ANeuralNetworksExecution_getDuration(int num); + void ANeuralNetworksMemoryDesc_finish(int num); + void ANeuralNetworksMemory_createFromAHardwareBuffer(int num); + void ANeuralNetworksModel_getSupportedOperationsForDevices(int num); + void ANeuralNetworks_getDevice(int num); + void APermissionManager_checkPermission(int num); + void ASensorEventQueue_requestAdditionalInfoEvents(int num); + void ASensorManager_createHardwareBufferDirectChannel(int num); + void ASensor_getHighestDirectReportRateLevel(int num); + void AObbInfo_getPackageName(int num); + }; + void android_app_set_motion_event_filter(int num); + void android_main(int num); + void Paddleboat_processGameActivityKeyInputEvent(int num); + void GameTextInput_setInputConnection(int num); + void TuningFork_startFidelityParamDownloadThread(int num); + +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/test_project/test.hpp b/hdc/api/test/storytest/test_demo1/test_project/test.hpp new file mode 100644 index 0000000000000000000000000000000000000000..c4f539391506d7e14062a6d547368f15f4fc15b7 --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/test.hpp @@ -0,0 +1,19 @@ +#include +#include +#include +#include "android/bitmap.h" + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void android_get_application_target_sdk_version(int num); + void android_get_device_api_level(int num); + public: + void ACameraOutputTarget_free(int num); + void ACaptureRequest_free(int num); + }; + void AObbScanner_getObbInfo(int num); + void AStorageManager_getMountedObbPath(int num); +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/test_project/test.hxx b/hdc/api/test/storytest/test_demo1/test_project/test.hxx new file mode 100644 index 0000000000000000000000000000000000000000..487c83a676cedb444bcacc3c5047207a2e3d8737 --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/test.hxx @@ -0,0 +1,23 @@ +#include +#include +#include +#include + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void ACameraDevice_getId(int num); + void ACameraMetadata_free(int num); + public: + void APermissionManager_checkPermission(int num); + void ASensorEventQueue_requestAdditionalInfoEvents(int num); + void ASensorManager_createHardwareBufferDirectChannel(int num); + void ASensor_getHighestDirectReportRateLevel(int num); + void AObbInfo_getPackageName(int num); + }; + void GameTextInput_setInputConnection(int num); + void TuningFork_startFidelityParamDownloadThread(int num); + +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/test_project/test.java b/hdc/api/test/storytest/test_demo1/test_project/test.java new file mode 100644 index 0000000000000000000000000000000000000000..4c7ef534f1ff02b23983d3589f3fac310fe3eded --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/test.java @@ -0,0 +1,56 @@ +#include +#include +#include +#include "android/bitmap.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "native_activity.h" +#include "hardware_buffer_jni.h" +#include "native_window.h" +#include "binder_auto_utils.h" +#include "multinetwork.h" +#include "NeuralNetworks.h" +#include "permission_manager.h" +#include "sensor.h" +#include "obb.h" +#include "surface_texture.h" +#include "sync.h" +#include "thermal.h" +#include "trace.h" +#include "api-level.h" +#include "GameActivity.h" + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void AImageDecoderFrameInfo_create(int num); + void AImageDecoderHeaderInfo_getDataSpace(int num); + void AImageDecoder_getHeaderInfo(int num); + public: + void AFont_getAxisValue(int num); + void ASystemFontIterator_close(int num); + void AInputEvent_getType(int num); + void AInputQueue_fromJava(int num); + void AKeyEvent_getDownTime(int num); + void AMotionEvent_getFlags(int num); + void __android_log_buf_write(int num); + void ALooper_pollOnce(int num); + void AImageReader_delete(int num); + void AImage_getFormat(int num); + }; + void ASurfaceTexture_acquireANativeWindow(int num); + void sync_file_info_free(int num); + void sync_merge(int num); +} \ No newline at end of file diff --git a/hdc/api/test/storytest/test_demo1/test_project/test.py b/hdc/api/test/storytest/test_demo1/test_project/test.py new file mode 100644 index 0000000000000000000000000000000000000000..c0fc4cae9e167d665cd41d7564110259c7721b7a --- /dev/null +++ b/hdc/api/test/storytest/test_demo1/test_project/test.py @@ -0,0 +1,27 @@ +#include "thermal.h" +#include "trace.h" + +using namespace std; +namespace ApiScan{ + class GameActivity + { + private: + void AAsset_getLength(int num); + void AAudioStreamBuilder_setDirection(int num); + void AAudioStream_getFormat(int num); + public: + void AMidiOutputPort_open(int num); + void ANativeActivity_finish(int num); + void ANativeWindow_toSurface(int num); + void ASurfaceControl_create(int num); + void ASurfaceTransactionStats_getLatchTime(int num); + void ASurfaceTransaction_setCrop(int num); + void AHardwareBuffer_allocate(int num); + void ANativeWindow_release(int num); + void AIBinder_Weak_lt(int num); + }; + void SwappyGL_setBufferStuffingFixWait(int num); + void SwappyVk_initAndGetRefreshCycleDuration(int num); + void GameActivityPointerAxes_getAxisValue(int num); + void android_app_set_motion_event_filter(int num); +} \ No newline at end of file diff --git a/hdc/gn/FAQ.md b/hdc/gn/FAQ.md index 5130116315d6b8e5b2839553f80441a4586be6f5..182fa528c750bf4ba3331ee7ea65b9f7f1979602 100755 --- a/hdc/gn/FAQ.md +++ b/hdc/gn/FAQ.md @@ -1,29 +1,160 @@ -# GN脚本转换工具 问题反馈 +# GN脚本转换工具 问题记录 -## 问题反馈 +## 具体三方库转换生成gn脚本问题记录 -1、未添加cmake参数,导致gn脚本转换失败。 +### 转换third_party/libpng库 -![](./figures/cmake_args.png) +1、使用VS Code插件转换libpng库时,参数填写如图所示,点击ok之后,右下角弹出genError日志,可将日志信息全部复制到日记本等工具,详细日志显示报错: "Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)"。 -问题定位:转换三方库项目生成BUILD.gn脚本未添加所需cmake参数,导致转换失败,报错。 +![](./figures/libpng_not_find_zlib.png) -问题解决:在转换三方库时添加cmake参数(-DM_LIBRARY=,-DZLIB_INCLUDE_DIR=E:/OpenHarmony/third_party/zlib,-DZLIB_LIBRARY=E:/OpenHarmony/out/rk3568-khdvk/appexecfwk/bundle_framework/libzlib.z.so),即可解决以上错误。 +![](./figures/libpng_not_find_zlib_log.png) -2、转换三方库生成gn脚本时,报错"clang未解析参数 -iXXXXXX"。 +问题定位:libpng三方库中引用到zlib库,但转换生成gn脚本时,未指定libzlib.z.so路径及zlib三方库源码路径,导致转换失败。 -![](./figures/clang_args_not_resolved.png) +问题解决:OpenHarmony源码中存在zlib三方库源码,若已编译成功过镜像,则out目录下会包含libzlib.z.so镜像。因此,在使用VS Code插件转换生成gn脚本时,在编译选项中指定libzlib.z.so路径、zlib库源文件路径即可,具体命令如下: -问题定位:当前工具代码中未包含“-iXXXXXX”参数的解析,导致转换失败。 + (-DM_LIBRARY=,-DZLIB_LIBRARY=/home/harmony/OpenHarmony/out/khdvk_rk3568_a/appexecfwk/bundle_framework/libzlib.z.so,-DZLIB_INCLUDE_DIR=/home/harmony/OpenHarmony/third_party/zlib) -问题解决:开发者可二次开发工具,修改napi_generator/hdc/gn-gen/src/analyze_command.js文件下的AnalyzeCommand.clangCheck1(e)接口,添加未解析的参数,修改如下: +![](./figures/libpng_generate_success.png) - static clangCheck1(e) { - if (e.startsWith("--sysroot=") || - ...... - e.startsWith("-isystem") || - e == "-w") { - return true; - } - return false; - } \ No newline at end of file +### 转换third_party/curl库 + +1、使用VS Code插件转换curl库时,参数填写如图所示,点击ok之后,右下角弹出genError日志,可将日志信息全部复制到日记本等工具,查看日志显示: "system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)"。 + +![](./figures/curl_not_find_openssl.png) + +![](./figures/curl_not_find_openssl_log.png) + +问题定位:curl三方库中引用到openssl三方库,但工具转换时未指定libcrypto.z.so路径以及openssl源码路径,导致转换失败。 + +问题解决:OpenHarmony源码存在openssl库,且在out路径下包含libcrypto.z.so镜像。因此,在使用VS Code插件转换生成gn脚本时,在编译选项中指定libcrypto.z.so路径、openssl库源文件路径即可,命令如下: + + (-DOPENSSL_ROOT_DIR=abc,-DOPENSSL_INCLUDE_DIR=/home/harmony/OpenHarmony/third_party/boringssl/src/include,-DOPENSSL_CRYPTO_LIBRARY=/home/harmony/OpenHarmony/out/khdvk_rk3568_a/developtools/profiler/libcrypto.z.so) + +![](./figures/curl_not_find_openssl_lib.png) + +2、根据步骤1后发现新的错误,具体报错日志为:未设置OPENSSL_SSL_LIBRARY路径。 + +![](./figures/curl_not_find_openssl_lib_log.png) + +问题定位:工具在转换时未指定libssl.z.so路径,导致转换失败。 + +问题解决:编译转换时增加指定libssl.z.so路径,命令如下: + + (-DOPENSSL_ROOT_DIR=abc,-DOPENSSL_INCLUDE_DIR=/home/harmony/OpenHarmony/third_party/boringssl/src/include,-DOPENSSL_CRYPTO_LIBRARY=/home/harmony/OpenHarmony/out/khdvk_rk3568_a/developtools/profiler/libcrypto.z.so,-DOPENSSL_SSL_LIBRARY=/home/harmony/OpenHarmony/out/khdvk_rk3568_a/developtools/profiler/libssl.z.so) + +![](./figures/curl_generate_clang.png) + +3、根据步骤2后再次发现新的错误,具体报错日志为:“clang未解析参数 /home/harmony/OpenHarmony/third_party/boringssl/src/include”,具体日志信息如下: + +![](./figures/curl_generate_clang_log.png) + +问题定位:编译脚本中存在工具不支持的特殊编译选项。 + +问题解决:在转换三方库时,可将扩展编译选项选择是,然后在扩展选项名称中填写“/home/harmony/OpenHarmony/third_party/boringssl/src/include”,具体操作如下所示: + +![](./figures/curl_generate_success.png) + +### 转换third_party/libphonenumber库 + +1、使用VS Code插件转换libphonenumber库时,参数填写如图所示,点击ok之后,右下角弹出genError日志,可将日志信息全部复制到日记本等工具,查看日志显示: "Can't find Google C++ Testing Framework"。 + +![](./figures/libphnum_not_find_google.png) + +![](./figures/libphnum_not_find_gtest.png) + +问题定位:工具在转换时未指定gtest路径,导致转换生成gn脚本时找不到“Google C++ Testing Framework”。 + +问题解决:OpenHarmony源码存在gtest库,因此在使用VS Code插件转换时,在编译选项处指定gtest路径即可,具体填写如下: + + (-DGTEST_INCLUDE_DIR=/home/harmony/OpenHarmony/third_party/googletest/googletest/include) + +![](./figures/libphnum_not_find_google_sourcedir.png) + +2、根据步骤1后发现新的错误,具体报错日志为未设置GTEST_SOURCE_DIR路径。 + +![](./figures/libphnum_not_find_gtest_sour.png) + +问题定位:工具在转换时未指定GTEST_SOURCE_DIR路径,导致转换生成gn脚本时找不到gtest源文件。 + +问题解决:在工具编译选项处增加指定GTEST_SOURCE_DIR路径,具体填写如下: + + (-DGTEST_INCLUDE_DIR=/home/harmony/OpenHarmony/third_party/googletest/googletest/include,-DGTEST_SOURCE_DIR=/home/harmony/OpenHarmony/third_party/googletest/googletest) + +![](./figures/libphnum_generate_success.png) + +如上图所示生成gn脚本成功。 + +### 转换third_party/libcoap库 + +1、使用可执行程序转换libcoap库时,报错如下: + +![](./figures/libcoap_not_find_mbedtls.png) + +问题定位:该三方库引用到mbedtls三方库,但工具在转换时未指定mbedtls源码路径以及libmbedtls.z.so镜像路径,导致转换失败。 + +问题解决:OpenHarmony源码中存在mbedtls三方库,且out目录下包含libmbedtls.z.so镜像,在转换libcoap库时增加-a参数,且指定MBEDTLS_INCLUDE_DIRS路径、MBEDTLS_LIBRARY路径即可,具体命令如下: + + harmony@Ubuntu-64:~/linshi/napi_generator_2/hdc/gn/gn-gen$./gn-gen-linux -o out/khdvk_rk3568_a -p /home/harmony/OpenHarmony -f third_party/libcoap/CMakeLists.txt -a "(-DM_LIBRARY=,-DMBEDTLS_INCLUDE_DIRS=/home/harmony/OpenHarmony/third_party/mbedtls,-DMBEDTLS_LIBRARY=/home/harmony/OpenHarmony/out/khdvk_rk3568_a/common/dsoftbus_standard/libmbedtls.z.so)" + +2、根据步骤1后发现新的错误,根据日志信息显示为“clang未解析参数 -g”。 + +![](./figures/libcoap_not_analysis_g.png) + +问题定位:当前工具源码不支持解析参数-g,导致转换失败。 + +问题解决:在cfg.json文件的compileflag参数中添加-g,如下所示: + + { + "fileSuffix": ".cpp, .cxx, .cc, .hpp", + "compileflag": "--target=, -march=,-g" + } + +3、根据步骤2后发现新的错误,根据日志信息显示为“clang未解析参数 -lMBEDX509_LIBRARY-NOTFOUND”。 + +![](./figures/libcoap_not_analysis_mbedx509.png) + +问题定位:当前工具源码不支持解析参数-lMBEDX509_LIBRARY-NOTFOUND,导致转换失败。 + +问题解决:在cfg.json文件的compileflag参数中添加-lMBEDX509_LIBRARY-NOTFOUND,如下所示: + + { + "fileSuffix": ".cpp, .cxx, .cc, .hpp", + "compileflag": "--target=, -march=,-g,-lMBEDX509_LIBRARY-NOTFOUND" + } + +4、根据步骤2后发现新的错误,根据日志信息显示为“clang未解析参数 -lMBEDCRYPTO_LIBRARY-NOTFOUND”。 + +![](./figures/libcoap_not_analysis_mbedcrypto.png) + +问题定位:当前工具源码不支持解析参数-lMBEDCRYPTO_LIBRARY-NOTFOUND,导致转换失败。 + +问题解决:在cfg.json文件的compileflag参数中添加-lMBEDCRYPTO_LIBRARY-NOTFOUND,如下所示: + + { + "fileSuffix": ".cpp, .cxx, .cc, .hpp", + "compileflag": "--target=, -march=,-g,-lMBEDX509_LIBRARY-NOTFOUND,-lMBEDCRYPTO_LIBRARY-NOTFOUND" + } + +### 转换third_party/mbedtls-development库 + +1、转换生成gn脚本时,报“No module named 'jsonschema'。 + +![](./figures/could_not_find_jsonschema.png) + +问题定位:当前环境中没有安装jsonschema库。 + +问题修改:安装jsonschema库,安装命令如下: + + pip install jsonschema + +4、转换生成gn脚本时,报“No module named 'jinja2'。 + +![](./figures/could_not_find_jinja2.png) + +问题定位:当前环境中没有安装jinja2库。 + +问题修改:安装jinja2库,安装命令如下: + + pip install jinja2 \ No newline at end of file diff --git a/hdc/gn/INSTRUCTION.md b/hdc/gn/INSTRUCTION.md new file mode 100644 index 0000000000000000000000000000000000000000..27d7088a89dd71cb51e30914c9ad0aefc142c9e3 --- /dev/null +++ b/hdc/gn/INSTRUCTION.md @@ -0,0 +1,176 @@ +# GN脚本转换工具使用说明 + +## 简介 + +gn脚本生成工具目前支持两种入口,分别是可执行程序、VS Code插件,推荐使用VS Code插件。可执行文件、VS Code插件下载路径如下: + +[下载链接](暂无) + +下载文件说明如下: + + │ │ |── res # 工具所需make文件 + │ │ |── gn-0.0.1.vsix # VS Code插件 + │ │ |── gn-gen-linux # Linux可执行程序 + │ │ |── gn-gen-win.exe # Windows可执行程序 + │ │ └── gn-gen-macos # Mac可执行程序 + +## 工具介绍 + +通过gn-gen生成工具,使用者可以基于OpenHarmony源码、已有编译脚本(目前支持cmake、make两种类型),生成OpenHarmony编译所需BUILD.gn脚本,实现将三方库移植到OpenHarmony上。 + +## 使用工具生成gn脚本 + +### VS Code插件使用方法 + +#### 环境说明 + +1、安装cmake,安装命令如下: + + sudo apt-get install cmake + +#### 生成ohos.toolchain.cmake + +1、Ubuntu中下载OpenHarmony源码,并编译成功一个产品的镜像包,此处以RK3568为例。源码如下所示: + +![](./figures/pic-openharmony.png) + +2、将待转换的三方库项目放置在third_party文件夹下,如下所示: + +![](./figures/pic-mbedtls-development.png) + +3、打开VS Code,在左侧边栏中选择插件安装。 + +![](./figures/pic-plug-in-search.png) + +4、 单击上面三个点的按钮,选择从VSIX安装选项,然后选择刚才生成的gn-0.0.1.vsix插件文件,再单击安装。 + +![](./figures/pic-plug-in-select.png) + +5、 安装完成后就会在VS Code的插件管理器中能看到gn这个插件了。 + +![](./figures/pic-plug-in-gn.png) + +6、 选中任意文件或文件夹,点击右键,选择“Gn Generate Frame”选项。 + +![](./figures/pic-plug-in-gn-c++.png) + +7、 Gn Generate Frame中参数填写完成之后,点击ok,如下所示: + +![](./figures/pic-gn-frame.png) + +参数详情如下: + +工程输出路径:必填参数,ohos产品输出相对路径(例如:out/khdvk_rk3568_a); + +工程源码路径:必填参数,ohos项目路径(例如:/home/harmony/OpenHarmony); + +输入脚本路径:必选参数,待转换三方库cmake文件相对路径(例如:third_party/mbedtls-development/CMakeLists.txt); + +输入脚本类型: 可选参数,默认为cmake; + +GN生成路径: 可选参数,工具默认填写待转换三方库cmake文件所在文件夹相对路径,使用者可根据实际情况修改路径; + +子系统名称: 可选参数,默认填写“test_subsystem”,使用者可根据实际情况修改名称; + +组件名称:可选参数,工具默认填写“test_part”,使用者可根据实际情况修改名称; + +编译选项:可选参数,待转换三方库中引用其他三方库时需填写该选项,具体填写方法可参考FAQ中libpng转换时问题解决方法,详细FAQ内容可左键单击以下链接了解:[FAQ](https://gitee.com/openharmony/napi_generator/blob/master/hdc/gn/FAQ.md); + +扩展文件类型:默认为否,部分三方库编译脚本需要支持的特殊文件类型,具体填写方法可参考FAQ中libpng转换时问题解决方法,详细FAQ内容可左键单击以下链接了解:[FAQ](https://gitee.com/openharmony/napi_generator/blob/master/hdc/gn/FAQ.md); + +扩展编译选项:默认为否,部分三方库编译脚本需要支持的特殊编译选项,具体填写方法可参考FAQ中curl转换时步骤3解决方法,详细FAQ内容可左键单击以下链接了解:[FAQ](https://gitee.com/openharmony/napi_generator/blob/master/hdc/gn/FAQ.md); + +8.运行完成后,进入/OpenHarmony/third_party/mbedtls-development/build_tmp目录下,查看是否存在ohos.toolchain.cmake文件,如下所示: + + harmony@Ubuntu-64:~/service/example$ cd /home/harmony/OpenHarmony/third_party/mbedtls-development/build_tmp/ + harmony@Ubuntu-64:~/OpenHarmony/third_party/mbedtls-development/build_tmp$ ll -A + 总用量 228 + drwxrwxr-x 3 harmony harmony 4096 12月 16 11:54 3rdparty/ + -rw-rw-r-- 1 harmony harmony 14658 12月 16 11:55 BUILD.gn + drwxrwxr-x 2 harmony harmony 4096 12月 16 11:54 cmake/ + -rw-rw-r-- 1 harmony harmony 17144 12月 16 11:54 CMakeCache.txt + drwxrwxr-x 10 harmony harmony 4096 12月 16 11:54 CMakeFiles/ + -rw-rw-r-- 1 harmony harmony 3879 12月 16 11:54 cmake_install.cmake + -rw-rw-r-- 1 harmony harmony 432 12月 16 11:54 CTestTestfile.cmake + -rwxr--r-- 1 harmony harmony 110 12月 16 11:54 DartConfiguration.tcl* + drwxrwxr-x 3 harmony harmony 4096 12月 16 11:54 include/ + drwxrwxr-x 3 harmony harmony 4096 12月 16 11:55 library/ + -rw-rw-r-- 1 harmony harmony 122917 12月 16 11:54 Makefile + -rw-rw-r-- 1 harmony harmony 1851 12月 16 11:54 ohos.toolchain.cmake + drwxrwxr-x 14 harmony harmony 4096 12月 16 11:54 programs/ + lrwxrwxrwx 1 harmony harmony 65 12月 16 11:54 scripts -> /home/harmony/OpenHarmony/third_party/mbedtls-development/scripts/ + drwxrwxr-x 4 harmony harmony 20480 12月 16 11:55 tests/ + +#### 运行make脚本 + +1、若build_tmp下存在ohos.toolchain.cmake文件,在终端中进入build_tmp目录下,运行make,查看cmake环境是否可以正常使用,命令如下: + + harmony@Ubuntu-64:~/OpenHarmony/third_party/mbedtls-development/build_tmp$ cmake .. -DCMAKE_TOOLCHAIN_FILE=ohos.toolchain.cmake + -- The C compiler identification is Clang 10.0.1 + -- Check for working C compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang + -- Check for working C compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -- works + -- Detecting C compiler ABI info + -- Detecting C compiler ABI info - done + -- Detecting C compile features + -- Detecting C compile features - done + -- Configuring done + -- Generating done + -- Build files have been written to: /home/harmony/OpenHarmony/third_party/mbedtls-development/build_tmp + +根据以上日志可发现make运行成功,环境正常使用。若运行make失败,则根据报错信息修改,直到make运行成功,环境正常使用为止。 + +#### 生成gn脚本 + +1、 Gn Generate Frame中参数填写如下: + +![](./figures/pic-gn-frame.png) + +具体参数填写参考生成ohos.toolchain.cmake中步骤7。 + +2.运行成功后会在/OpenHarmony/third_party/mbedtls-development目录下生成build_tmp文件夹,build_tmp文件夹中包含BUILD.gn文件,如下所示: + +![](./figures/pic-build-tmp.png) + +### 可执行程序使用方法 + +具体可执行程序使用步骤,可以左键单击以下链接了解: + +[可执行程序使用说明](https://gitee.com/openharmony/napi_generator/blob/master/hdc/gn/docs/FAQ.md) + +## 将三方库集成到OpenHarmony源码 + +### 通过其他子系统调用 + +1、此处以OpenHarmony/foundation/multimodalinput组件调用mbedtls-development组件为例。在~/multimodalinput/input/BUILD.gn文件中添加mbedtls-development依赖,其中“//third_party/mbedtls-development/build_tmp”为mbedtls-development组件BUILD.gn文件所在相对路径;“all_targets”为mbedtls-development组件BUILD.gn文件中group名称。具体书写如下所示: + +``` + + harmony@Ubuntu-64:~$ cd /home/harmony/OpenHarmony/foundation/multimodalinput/input/ + harmony@Ubuntu-64:~/OpenHarmony/foundation/multimodalinput/input$ cat BUILD.gn + ...... + ohos_shared_library("mmi_uinject") { + ...... + deps = [ + "//drivers/peripheral/input/hal:hdi_input", + "//utils/native/base:utils", + "//third_party/mbedtls-development/build_tmp:all_targets", + ] + ...... +``` + + +2、进入~/OpenHarmony目录下,通过ninja形式编译,编译命令及编译结果如下: + + ninja -C out/khdvk_rk3568_a all_targets + +![](./figures/ninja_build_success.png) + +3、编译成功后,会生成mbedtls-development相关库文件或可执行程序,生成文件及路径如下所示: + +![](./figures/generate_file.png) + +### 总结 + +根据以上操作,即可将三方库集成到OpenHarmony源码中。 + + diff --git a/hdc/gn/INSTRUCTION_EXECUTABLE.md b/hdc/gn/INSTRUCTION_EXECUTABLE.md new file mode 100644 index 0000000000000000000000000000000000000000..de4cc18e7c78b52b963b4f0b9ab6bc4320270eaa --- /dev/null +++ b/hdc/gn/INSTRUCTION_EXECUTABLE.md @@ -0,0 +1,137 @@ +# GN脚本转换工具可执行程序使用说明 +## 简介 + +gn脚本生成工具目前支持两种入口,分别是可执行程序、VS Code插件,推荐使用VSCode插件。可执行文件、VS Code插件下载路径如下: + +[下载链接](暂无) + +下载文件说明如下: + + │ │ |── res # 工具所需make文件 + │ │ |── gn-0.0.1.vsix # VS Code插件 + │ │ |── gn-gen-linux # Linux可执行程序 + │ │ |── gn-gen-win.exe # Windows可执行程序 + │ │ └── gn-gen-macos # Mac可执行程序 + +## 工具介绍 + +通过gn-gen生成工具,使用者可以基于OpenHarmony源码、已有编译脚本(目前支持cmake、make两种类型),生成OpenHarmony编译所需BUILD.gn脚本,实现将三方库移植到OpenHarmony上。 + +## 可执行程序使用方法 + +### 环境说明 + +1、安装cmake,安装命令如下: + + sudo apt-get install cmake + +### 生成ohos.toolchain.cmake + +1、Ubuntu中下载OpenHarmony源码,并编译成功一个产品的镜像包,此处以RK3568为例。源码如下所示: + +![](./figures/pic-openharmony.png) + +2、将待转换的三方库项目放置在third_party文件夹下,如下所示: + +![](./figures/pic-mbedtls-development.png) + +3、将下载的可执行程序gn-gen-linux与文件夹res放置在任意同一文件夹下。并将gn-gen-linux文件与res/linux/bin下文件赋可执行权限,如下所示: + + harmony@Ubuntu-64:~/service/example$ ls + cfg.json gn-gen-linux res + harmony@Ubuntu-64:~/service/example$ sudo chmod -R 777 ./* + harmony@Ubuntu-64:~/service/example$ ll -A + 总用量 116572 + -rwxrwxrwx 1 harmony harmony 119361984 12月 15 09:41 gn-gen-linux* + drwxrwxrwx 5 harmony harmony 4096 12月 14 15:33 res/ + +4、在gn-gen-linux目录下新增cfg.json文件,文件中添加以下内容: + + { + "fileSuffix": ".cpp, .cxx, .cc, .hpp", + "compileflag": "--target=, -march=" + } + +5、在终端中进入到可执行程序gn-gen-linux所在的目录,并运行gn-gen-linux,命令如下: + + harmony@Ubuntu-64:~/service/example$ ./gn-gen-linux -o out/khdvk_rk3568_a -p /home/harmony/OpenHarmony -f third_party/mbedtls-development/CMakeLists.txt -t cmake -s test_subsystem -m mbedtls-development + +![](./figures/pic-generate-command.png) + +其中,参数详情如下: + + -o:必填参数,ohos产品输出相对路径(例如:out/khdvk_rk3568_a); + + -p:必填参数,ohos项目路径(例如:/home/harmony/OpenHarmony); + + -f:必选参数,待转换三方库cmake文件相对路径(例如:third_party/mbedtls-development/CMakeLists.txt); + + -t:可选参数,默认为cmake; + + -s:可选参数,默认填写“test_subsystem”,使用者可根据实际情况修改子系统名称; + + -m:可选参数,工具默认填写“test_part”,使用者可根据实际情况修改组件名称; + + -d:可选参数,工具默认填写待转换三方库cmake文件所在文件夹相对路径,使用者可根据实际情况修改路径; + + -a:可选参数,待转换三方库中引用其他三方库时需填写该选项,具体填写方法可参考FAQ中libcoap转换时问题解决方法,详细FAQ内容可左键单击以下链接了解:[FAQ](https://gitee.com/openharmony/napi_generator/blob/master/hdc/gn/FAQ.md); + +6、运行完成后,进入/OpenHarmony/third_party/mbedtls-development/build_tmp目录下,查看是否存在ohos.toolchain.cmake文件,如下所示: + + harmony@Ubuntu-64:~/service/example$ cd /home/harmony/OpenHarmony/third_party/mbedtls-development/build_tmp/ + harmony@Ubuntu-64:~/OpenHarmony/third_party/mbedtls-development/build_tmp$ ll -A + 总用量 228 + drwxrwxr-x 3 harmony harmony 4096 12月 16 11:54 3rdparty/ + -rw-rw-r-- 1 harmony harmony 14658 12月 16 11:55 BUILD.gn + drwxrwxr-x 2 harmony harmony 4096 12月 16 11:54 cmake/ + -rw-rw-r-- 1 harmony harmony 17144 12月 16 11:54 CMakeCache.txt + drwxrwxr-x 10 harmony harmony 4096 12月 16 11:54 CMakeFiles/ + -rw-rw-r-- 1 harmony harmony 3879 12月 16 11:54 cmake_install.cmake + -rw-rw-r-- 1 harmony harmony 432 12月 16 11:54 CTestTestfile.cmake + -rwxr--r-- 1 harmony harmony 110 12月 16 11:54 DartConfiguration.tcl* + drwxrwxr-x 3 harmony harmony 4096 12月 16 11:54 include/ + drwxrwxr-x 3 harmony harmony 4096 12月 16 11:55 library/ + -rw-rw-r-- 1 harmony harmony 122917 12月 16 11:54 Makefile + -rw-rw-r-- 1 harmony harmony 1851 12月 16 11:54 ohos.toolchain.cmake + drwxrwxr-x 14 harmony harmony 4096 12月 16 11:54 programs/ + lrwxrwxrwx 1 harmony harmony 65 12月 16 11:54 scripts -> /home/harmony/OpenHarmony/third_party/mbedtls-development/scripts/ + drwxrwxr-x 4 harmony harmony 20480 12月 16 11:55 tests/ + +### 运行make脚本 + +1、在终端中进入ohos.toolchain.cmake所在的build_tmp目录下,运行make,查看cmake环境是否可以正常使用,命令如下: + + harmony@Ubuntu-64:~/OpenHarmony/third_party/mbedtls-development/build_tmp$ cmake .. -DCMAKE_TOOLCHAIN_FILE=ohos.toolchain.cmake + -- The C compiler identification is Clang 10.0.1 + -- Check for working C compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang + -- Check for working C compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -- works + -- Detecting C compiler ABI info + -- Detecting C compiler ABI info - done + -- Detecting C compile features + -- Detecting C compile features - done + -- Configuring done + -- Generating done + -- Build files have been written to: /home/harmony/OpenHarmony/third_party/mbedtls-development/build_tmp + +根据以上日志可发现make运行成功,环境正常使用。若运行make失败,则根据报错信息修改,直到make运行成功,环境正常使用为止。 + +### 生成gn脚本 + +1、在终端中进入到可执行程序gn-gen-linux所在的目录,并运行gn-gen-linux,命令如下: + + harmony@Ubuntu-64:~/service/example$ ./gn-gen-linux -o out/khdvk_rk3568_a -p /home/harmony/OpenHarmony -f third_party/mbedtls-development/CMakeLists.txt -s test_subsystem -m mbedtls-development + INFO (1) -- The C compiler identification is Clang 10.0.1 + + INFO (2) -- Check for working C compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang + + INFO (3) -- Check for working C compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -- works + + ...... + + INFO (647) -------------------generate gn ok + +其中,参数详情如生成ohos.toolchain.cmake中步骤4。 + +2.运行成功后会在/OpenHarmony/third_party/mbedtls-development目录下生成build_tmp文件夹,build_tmp文件夹中包含BUILD.gn文件,如下所示: + +![](./figures/pic-build-tmp.png) \ No newline at end of file diff --git a/hdc/gn/figures/could_not_find_jinja2.png b/hdc/gn/figures/could_not_find_jinja2.png new file mode 100644 index 0000000000000000000000000000000000000000..4fe58402f543418740149ed886d132f722c57049 Binary files /dev/null and b/hdc/gn/figures/could_not_find_jinja2.png differ diff --git a/hdc/gn/figures/could_not_find_jsonschema.png b/hdc/gn/figures/could_not_find_jsonschema.png new file mode 100644 index 0000000000000000000000000000000000000000..f6c4676f50a7a19440e3e4b840649eabfb1ccac8 Binary files /dev/null and b/hdc/gn/figures/could_not_find_jsonschema.png differ diff --git a/hdc/gn/figures/curl_generate_clang.png b/hdc/gn/figures/curl_generate_clang.png new file mode 100644 index 0000000000000000000000000000000000000000..d4184bc4c6de8c944890da1cf7c419e7c2de78a4 Binary files /dev/null and b/hdc/gn/figures/curl_generate_clang.png differ diff --git a/hdc/gn/figures/curl_generate_clang_log.png b/hdc/gn/figures/curl_generate_clang_log.png new file mode 100644 index 0000000000000000000000000000000000000000..902d930e9bca709be2c8d567d9dd9e627a16eccc Binary files /dev/null and b/hdc/gn/figures/curl_generate_clang_log.png differ diff --git a/hdc/gn/figures/curl_generate_success.png b/hdc/gn/figures/curl_generate_success.png new file mode 100644 index 0000000000000000000000000000000000000000..d74e6d343dca93696b9eb54bcd7fc2be726c1d86 Binary files /dev/null and b/hdc/gn/figures/curl_generate_success.png differ diff --git a/hdc/gn/figures/curl_not_find_openssl.png b/hdc/gn/figures/curl_not_find_openssl.png new file mode 100644 index 0000000000000000000000000000000000000000..98b36d0e5b2c0a9614d99d2698d59a601661f53f Binary files /dev/null and b/hdc/gn/figures/curl_not_find_openssl.png differ diff --git a/hdc/gn/figures/curl_not_find_openssl_lib.png b/hdc/gn/figures/curl_not_find_openssl_lib.png new file mode 100644 index 0000000000000000000000000000000000000000..8ffc2e1007bf0f9b9176ece97c61af9747370acb Binary files /dev/null and b/hdc/gn/figures/curl_not_find_openssl_lib.png differ diff --git a/hdc/gn/figures/curl_not_find_openssl_lib_log.png b/hdc/gn/figures/curl_not_find_openssl_lib_log.png new file mode 100644 index 0000000000000000000000000000000000000000..59ccc4ce7c327396c678cd465f2c66e8bca1d4c2 Binary files /dev/null and b/hdc/gn/figures/curl_not_find_openssl_lib_log.png differ diff --git a/hdc/gn/figures/curl_not_find_openssl_log.png b/hdc/gn/figures/curl_not_find_openssl_log.png new file mode 100644 index 0000000000000000000000000000000000000000..d2450bbe06cde86ec7dfa4ea99266bd843d5abc3 Binary files /dev/null and b/hdc/gn/figures/curl_not_find_openssl_log.png differ diff --git a/hdc/gn/figures/libcoap_not_analysis_g.png b/hdc/gn/figures/libcoap_not_analysis_g.png new file mode 100644 index 0000000000000000000000000000000000000000..5cbc61fa3bc74ac40002bad5560cbdc01e644f35 Binary files /dev/null and b/hdc/gn/figures/libcoap_not_analysis_g.png differ diff --git a/hdc/gn/figures/libcoap_not_analysis_mbedcrypto.png b/hdc/gn/figures/libcoap_not_analysis_mbedcrypto.png new file mode 100644 index 0000000000000000000000000000000000000000..464d2ffe559c98c1174f400c17208ac3f098a01e Binary files /dev/null and b/hdc/gn/figures/libcoap_not_analysis_mbedcrypto.png differ diff --git a/hdc/gn/figures/libcoap_not_analysis_mbedx509.png b/hdc/gn/figures/libcoap_not_analysis_mbedx509.png new file mode 100644 index 0000000000000000000000000000000000000000..85b3c6a759c6b1c254be4cec83cd0f4dbcb019ab Binary files /dev/null and b/hdc/gn/figures/libcoap_not_analysis_mbedx509.png differ diff --git a/hdc/gn/figures/libcoap_not_find_mbedtls.png b/hdc/gn/figures/libcoap_not_find_mbedtls.png new file mode 100644 index 0000000000000000000000000000000000000000..4625eff393ca41371d9c53f862ab3ef420369d0a Binary files /dev/null and b/hdc/gn/figures/libcoap_not_find_mbedtls.png differ diff --git a/hdc/gn/figures/libphnum_generate_success.png b/hdc/gn/figures/libphnum_generate_success.png new file mode 100644 index 0000000000000000000000000000000000000000..1d39b4c6b4b7458273bc9c4f3eb9466c0987fcf6 Binary files /dev/null and b/hdc/gn/figures/libphnum_generate_success.png differ diff --git a/hdc/gn/figures/libphnum_not_find_google.png b/hdc/gn/figures/libphnum_not_find_google.png new file mode 100644 index 0000000000000000000000000000000000000000..b570db0d3a11a79fb4ce424f4df9a5d0bc0b07cb Binary files /dev/null and b/hdc/gn/figures/libphnum_not_find_google.png differ diff --git a/hdc/gn/figures/libphnum_not_find_google_sourcedir.png b/hdc/gn/figures/libphnum_not_find_google_sourcedir.png new file mode 100644 index 0000000000000000000000000000000000000000..e9549793cccb5506d86c575eb7b828e3877d5390 Binary files /dev/null and b/hdc/gn/figures/libphnum_not_find_google_sourcedir.png differ diff --git a/hdc/gn/figures/libphnum_not_find_gtest.png b/hdc/gn/figures/libphnum_not_find_gtest.png new file mode 100644 index 0000000000000000000000000000000000000000..475be2cf2992a6cafc2261834f7ab7e7c427e8a8 Binary files /dev/null and b/hdc/gn/figures/libphnum_not_find_gtest.png differ diff --git a/hdc/gn/figures/libphnum_not_find_gtest_sour.png b/hdc/gn/figures/libphnum_not_find_gtest_sour.png new file mode 100644 index 0000000000000000000000000000000000000000..c19d6e6bfa71d43293047689949d5b0b64320756 Binary files /dev/null and b/hdc/gn/figures/libphnum_not_find_gtest_sour.png differ diff --git a/hdc/gn/figures/libpng_generate_success.png b/hdc/gn/figures/libpng_generate_success.png new file mode 100644 index 0000000000000000000000000000000000000000..e5bb8d8aacb2570b10cee77fdae0fb531dd126f5 Binary files /dev/null and b/hdc/gn/figures/libpng_generate_success.png differ diff --git a/hdc/gn/figures/libpng_not_find_zlib.png b/hdc/gn/figures/libpng_not_find_zlib.png new file mode 100644 index 0000000000000000000000000000000000000000..15efe43c80bd48904968460e4c133c58248f1918 Binary files /dev/null and b/hdc/gn/figures/libpng_not_find_zlib.png differ diff --git a/hdc/gn/figures/libpng_not_find_zlib_log.png b/hdc/gn/figures/libpng_not_find_zlib_log.png new file mode 100644 index 0000000000000000000000000000000000000000..4c68b8a626e67fa64604dcf86be2f13a0ea69c92 Binary files /dev/null and b/hdc/gn/figures/libpng_not_find_zlib_log.png differ diff --git a/hdc/gn/figures/ninja_build_success.png b/hdc/gn/figures/ninja_build_success.png new file mode 100644 index 0000000000000000000000000000000000000000..fefca66c6b667e93f3b4fc29073ffbc6bdfa9916 Binary files /dev/null and b/hdc/gn/figures/ninja_build_success.png differ diff --git a/hdc/gn/figures/pic-generate-command.png b/hdc/gn/figures/pic-generate-command.png new file mode 100644 index 0000000000000000000000000000000000000000..dd932d0e1478e1d6d6a686e40fa1761557f072d6 Binary files /dev/null and b/hdc/gn/figures/pic-generate-command.png differ diff --git a/hdc/gn/figures/pic-gn-frame.png b/hdc/gn/figures/pic-gn-frame.png index c673d48e19f42c1ed17548eafba93fee19538d5f..e6d8720f0f27d237933b6a6f6847ace2b8e00a02 100755 Binary files a/hdc/gn/figures/pic-gn-frame.png and b/hdc/gn/figures/pic-gn-frame.png differ diff --git a/hdc/gn/figures/pic-plug-in-gn-c++.png b/hdc/gn/figures/pic-plug-in-gn-c++.png index 56d73fa2dafd37485d2262dc05dce8041f1f5368..433caddef5b9c7544127c941b598dd079757bffb 100755 Binary files a/hdc/gn/figures/pic-plug-in-gn-c++.png and b/hdc/gn/figures/pic-plug-in-gn-c++.png differ diff --git a/hdc/gn/figures/pic-plug-in-gn.png b/hdc/gn/figures/pic-plug-in-gn.png index 1bce0762445a1c2aedc311fe0c4473925e952bdd..62059514c9e8a2b579617aeadeb3a097a1c005c4 100755 Binary files a/hdc/gn/figures/pic-plug-in-gn.png and b/hdc/gn/figures/pic-plug-in-gn.png differ diff --git a/hdc/gn/figures/pic-plug-in-search.png b/hdc/gn/figures/pic-plug-in-search.png index e07f4d60a8af69af2f72582ca74b3e6bdba8d1b8..4a19f9e2ba60de4fb3d5c096965001f6c5f1ebc1 100755 Binary files a/hdc/gn/figures/pic-plug-in-search.png and b/hdc/gn/figures/pic-plug-in-search.png differ diff --git a/hdc/gn/figures/pic-plug-in-select.png b/hdc/gn/figures/pic-plug-in-select.png index 371b7eac025a42c56333b2fba2b52aa51b4a092b..05a10eddd1ca37686b2dfe1c36e7378e0c26fb1e 100755 Binary files a/hdc/gn/figures/pic-plug-in-select.png and b/hdc/gn/figures/pic-plug-in-select.png differ diff --git a/hdc/gn/test/storytest/test.py b/hdc/gn/test/storytest/test.py new file mode 100644 index 0000000000000000000000000000000000000000..9eae9617bce5a79c037264400840d71e77026ac8 --- /dev/null +++ b/hdc/gn/test/storytest/test.py @@ -0,0 +1,60 @@ +# !/usr/bin/env python3 +# coding=utf-8 +""" +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +* +* HDF is dual licensed: you can use it either under the terms of +* the GPL, or the BSD license, at your option. +* See the LICENSE file in the root of this repository for complete details. +""" +import os +import sys + +def do_test(gn_test_dir,fn): + test_name = sys.argv[6].split('/')[2] + if not os.path.exists(test_name): + return + + os.chdir(sys.argv[4] + "/third_party") + if not os.path.exists(test_name): + os.system("cp -r " + gn_test_dir + "/" + fn + "/" + test_name + " ./") + + test_dir = gn_test_dir + "/" + fn + os.chdir(test_dir) + ret = os.popen("node ../../../../hdc/gn-gen/main.js -o " + sys.argv[2] + + " -p " + sys.argv[4] + + " -f " + sys.argv[6] + + " -d " + test_dir + "/" + test_name) + + result = ret.read() + print(result[len(result)-45:len(result)-1]) + + if "generate gn ok" not in result: + print("error compile failed") + return + else: + print("compile ok") + + os.chdir(test_dir) + + os.system("npx mocha test.js") + + +if __name__ == "__main__": + work_path = os.path.split(sys.argv[0])[0] + os.chdir(work_path) + gn_test_dir = os.getcwd() + if len(sys.argv) >= 8: + for fn in sys.argv[7:]: + if os.path.isdir(fn): + os.chdir(fn) + do_test(gn_test_dir,fn) + os.chdir("..") + else: + print("error",fn,"is not exist") + else: + for fn in os.listdir("."): + if os.path.isdir(fn): + os.chdir(fn) + do_test(gn_test_dir,fn) + os.chdir("..") diff --git a/hdc/gn/test/storytest/test_multiple/test.js b/hdc/gn/test/storytest/test_multiple/test.js new file mode 100644 index 0000000000000000000000000000000000000000..15f99f0896654dd877d57559c900673a5b65c673 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test.js @@ -0,0 +1,215 @@ +/* +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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. +*/ +var assert = require("assert"); + +var fs = require("fs"); +let data = fs.readFileSync('test_executable/build_tmp/BUILD.gn', + { encoding: "utf8" }); +let import_content = data.substring(0, data.indexOf('config') - 2); +let ohos_executable = data.substring(data.indexOf('config'), + data.indexOf('test_subsystem') + 17); +let qiepian1 = data.substring(data.indexOf('test_subsystem') + 18, + data.length - 1); +let ohos_static = qiepian1.substring(qiepian1.indexOf('config'), + qiepian1.indexOf('test_subsystem') + 17); +let qiepian2 = qiepian1.substring(qiepian1.indexOf('test_subsystem') + 17, + qiepian1.length - 1); +let ohos_shard = qiepian2.substring(qiepian2.indexOf('config'), + qiepian2.indexOf('test_subsystem') + 17); +let all_targets = data.substring(data.lastIndexOf('group'), + data.length - 1); + +describe('PriDir CMakeLists.txt exe', function () { + + it('Whether BUILD.gn exists', function () { + var flag = fs.existsSync('test_executable/build_tmp/BUILD.gn'); + assert.deepStrictEqual(flag, true); + }); + + it('Whether import exists', function () { + assert.deepStrictEqual(import_content, "import(\"//build/ohos.gni\")"); + }); + + it('Whether executable exists', function () { + let linshi = ohos_executable.replace(/\s*/g, ""); + flag = linshi.includes("cflags_cc=[\"-std=c++17\",\"-std=gnu++11\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("ohos_executable(\"Demo\")"); + assert.strictEqual(flag, true); + let source1 = "sources=[\"//third_party/test_executable/Function.cc\","; + let source2 = "\"//third_party/test_executable/main.cc\"]"; + flag = linshi.includes(source1 + source2); + assert.strictEqual(flag, true); + let include1 = "include_dirs=[\"//third_party/test_executable/build_tmp\","; + let include2 = "\"//third_party/test_executable/build_tmp/math\"]"; + flag = linshi.includes(include1 + include2); + assert.strictEqual(flag, true); + let def1 = "deps=[\"//third_party/test_executable/build_tmp/math:MathFunctions\"]"; + flag = linshi.includes(def1); + assert.strictEqual(flag, true); + flag = linshi.includes("\"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1\""); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); +}); + +describe('PriDir CMakeLists.txt static', function () { + it('Whether static exists', function () { + let linshi = ohos_static.replace(/\s*/g, ""); + flag = linshi.includes("cflags_cc=[\"-std=c++17\",\"-std=gnu++11\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("ohos_static_library(\"TestStatic\")"); + assert.strictEqual(flag, true); + let source1 = "sources=[\"//third_party/test_executable/Function.cc\","; + let source2 = "\"//third_party/test_executable/main.cc\"]"; + flag = linshi.includes(source1 + source2); + assert.strictEqual(flag, true); + let include1 = "include_dirs=[\"//third_party/test_executable/build_tmp\","; + let include2 = "\"//third_party/test_executable/build_tmp/math\"]"; + flag = linshi.includes(include1 + include2); + assert.strictEqual(flag, true); + let def1 = "deps=[\"//third_party/test_executable/build_tmp/math:MathFunctions\"]"; + flag = linshi.includes(def1); + assert.strictEqual(flag, false); + flag = linshi.includes("\"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1\""); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); +}); + +describe('PriDir CMakeLists.txt share', function () { + it('Whether share exists', function () { + let linshi = ohos_shard.replace(/\s*/g, ""); + flag = linshi.includes("cflags_cc=[\"-std=c++17\",\"-std=gnu++11\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("ohos_shared_library(\"TestShared\")"); + assert.strictEqual(flag, true); + let source1 = "sources=[\"//third_party/test_executable/Function.cc\","; + let source2 = "\"//third_party/test_executable/main.cc\"]"; + flag = linshi.includes(source1 + source2); + assert.strictEqual(flag, true); + let include1 = "include_dirs=[\"//third_party/test_executable/build_tmp\","; + let include2 = "\"//third_party/test_executable/build_tmp/math\"]"; + flag = linshi.includes(include1 + include2); + assert.strictEqual(flag, true); + let def1 = "deps=[\"//third_party/test_executable/build_tmp/math:MathFunctions\"]"; + flag = linshi.includes(def1); + assert.strictEqual(flag, true); + flag = linshi.includes("\"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1\""); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); + + it('Whether group exists', function () { + let linshi = all_targets.replace(/\s*/g, ""); + flag = linshi.includes('group("all_targets")'); + assert.strictEqual(flag, true); + let liba1 = "#静态库\"//third_party/test_executable/build_tmp/math:MathFunctions\","; + let liba2 = "\"//third_party/test_executable/build_tmp:TestStatic\""; + flag = linshi.includes(liba1+liba2); + assert.strictEqual(flag, true); + flag = linshi.includes("#动态库\"//third_party/test_executable/build_tmp:TestShared\""); + assert.strictEqual(flag, true); + let exe1 = "#可执行程序\"//third_party/test_executable/build_tmp/math:hello\","; + let exe2 = "\"//third_party/test_executable/build_tmp:Demo\""; + flag = linshi.includes(exe1+exe2); + assert.strictEqual(flag, true); + }); +}); + +let data2 = fs.readFileSync('test_executable/build_tmp/math/BUILD.gn', + { encoding: "utf8" }); +let import_content1 = data2.substring(0, data2.indexOf('config') - 2); +let ohos_static1 = data2.substring(data2.indexOf('config'), + data2.indexOf('test_subsystem') + 17); +let qiepian3 = data2.substring(data2.indexOf('test_subsystem') + 18, + data2.length - 1); +let ohos_executable1 = qiepian3.substring(qiepian3.indexOf('config'), + qiepian3.indexOf('test_subsystem') + 17); + +describe('Subdir CMakeLists.txt static', function () { + + it('Whether BUILD.gn exists', function () { + var flag = fs.existsSync('test_executable/build_tmp/math/BUILD.gn'); + assert.deepStrictEqual(flag, true); + }); + + it('Whether import exists', function () { + assert.deepStrictEqual(import_content1, "import(\"//build/ohos.gni\")"); + }); + + it('Whether static exists', function () { + let linshi = ohos_static1.replace(/\s*/g, ""); + flag = linshi.includes("cflags_cc=[\"-std=c++17\",\"-std=gnu++11\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("ohos_static_library(\"MathFunctions\")"); + assert.strictEqual(flag, true); + let source1 = "sources=[\"//third_party/test_executable/math/MathFunctions.cc\"]"; + flag = linshi.includes(source1); + assert.strictEqual(flag, true); + flag = linshi.includes("include_dirs=["); + assert.strictEqual(flag, false); + flag = linshi.includes("deps=["); + assert.strictEqual(flag, false); + flag = linshi.includes("\"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1\""); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); +}); + +describe('Subdir CMakeLists.txt exe', function () { + it('Whether executable exists', function () { + let linshi = ohos_executable1.replace(/\s*/g, ""); + flag = linshi.includes("cflags_cc=[\"-std=c++17\",\"-std=gnu++11\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("ohos_executable(\"hello\")"); + assert.strictEqual(flag, true); + let source1 = "sources=[\"//third_party/test_executable/math/MathFunctions.cc\"]"; + flag = linshi.includes(source1); + assert.strictEqual(flag, true); + flag = linshi.includes("include_dirs=["); + assert.strictEqual(flag, false); + flag = linshi.includes("deps=["); + assert.strictEqual(flag, false); + flag = linshi.includes("\"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1\""); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); + + it('Whether shared exists', function () { + flag = data2.includes("ohos_shared_library"); + assert.strictEqual(flag, false); + }); + + it('Whether group exists', function () { + flag = data2.includes("group(\"all_targets\")"); + assert.strictEqual(flag, false); + }); +}); \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/CMakeLists.txt b/hdc/gn/test/storytest/test_multiple/test_executable/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..3d6888a475592a19f8768fbe709cc35adf91e0ba --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/CMakeLists.txt @@ -0,0 +1,40 @@ +#CMake最低版本号要求 +cmake_minimum_required(VERSION 2.8) + +#项目信息 +project(Demo) + +#设置变量 +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -std=c99") + +#添加编译选项 +add_definitions(-D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1) + +#获取路径下所有的.cpp/.c/.cc文件,并赋值到DIR_SRCS变量中 +aux_source_directory(. DIR_SRCS) + +#添加子文件夹的CMakeLists.txt add_subdirectory(子文件名称) +add_subdirectory(math) + +#规定.h头文件路径 +include_directories(${CMAKE_CURRENT_BINARY_DIR}) +include_directories(${CMAKE_CURRENT_BINARY_DIR}/math) + +#将.cpp/.c/.cc文件生成可执行程序 add_executable(可执行文件名 文件) +add_executable(Demo ${DIR_SRCS}) + +#添加链接库 +target_link_libraries (Demo MathFunctions) + +#将.cpp/.c/.cc文件生成.a静态库 add_library(库文件名 STATIC 文件) +add_library(TestStatic STATIC ${DIR_SRCS}) + +target_link_libraries (TestStatic MathFunctions) + +#将.cpp/.c/.cc文件生成.so静态库 add_library(库文件名 SHARED 文件) +add_library(TestShared SHARED ${DIR_SRCS}) + +target_link_libraries (TestShared MathFunctions) \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/Function.cc b/hdc/gn/test/storytest/test_multiple/test_executable/Function.cc new file mode 100644 index 0000000000000000000000000000000000000000..06d5a8404c31e207cfa7dfee3a1478c063faa990 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/Function.cc @@ -0,0 +1,16 @@ +#include +#include + +double add(double base, int exponent){ + int result = base; + int i; + + if (exponent == 0){ + return 1; + } + + for (i = 1; i < exponent; ++i){ + result = result + base; + } + return result; +} \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/Function.h b/hdc/gn/test/storytest/test_multiple/test_executable/Function.h new file mode 100644 index 0000000000000000000000000000000000000000..242046885d7fb76888a546d68bda83934e27eece --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/Function.h @@ -0,0 +1,4 @@ +#include +#include + +double add(double base, int count); diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/BUILD.gn b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..eeb11d87003df3a912077ce0b2ce040ce32e6505 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/BUILD.gn @@ -0,0 +1,189 @@ +import("//build/ohos.gni") + +config("Demo_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4", + "-Wno-unused-command-line-argument" + ] + + cflags_cc = [ + "-std=c++17", + "-std=gnu++11" + ] +} + +ohos_executable("Demo") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":Demo_config" ] + + sources = [ + "//third_party/test_executable/Function.cc", + "//third_party/test_executable/main.cc" + ] + + include_dirs = [ + "//third_party/test_executable/build_tmp", + "//third_party/test_executable/build_tmp/math" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1", + "__clang__" + ] + + deps = [ + "//third_party/test_executable/build_tmp/math:MathFunctions" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + +config("TestStatic_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4", + "-Wno-unused-command-line-argument" + ] + + cflags_cc = [ + "-std=c++17", + "-std=gnu++11" + ] +} + +ohos_static_library("TestStatic") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":TestStatic_config" ] + + sources = [ + "//third_party/test_executable/Function.cc", + "//third_party/test_executable/main.cc" + ] + + include_dirs = [ + "//third_party/test_executable/build_tmp", + "//third_party/test_executable/build_tmp/math" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1", + "__clang__" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + +config("TestShared_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4", + "-Wno-unused-command-line-argument" + ] + + cflags_cc = [ + "-std=c++17", + "-std=gnu++11" + ] +} + +ohos_shared_library("TestShared") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":TestShared_config" ] + + sources = [ + "//third_party/test_executable/Function.cc", + "//third_party/test_executable/main.cc" + ] + + include_dirs = [ + "//third_party/test_executable/build_tmp", + "//third_party/test_executable/build_tmp/math" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "TestShared_EXPORTS", + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1", + "__clang__" + ] + + deps = [ + "//third_party/test_executable/build_tmp/math:MathFunctions" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + + +group("all_targets") { + deps = [ + #静态库 + "//third_party/test_executable/build_tmp/math:MathFunctions", + "//third_party/test_executable/build_tmp:TestStatic", + + #动态库 + "//third_party/test_executable/build_tmp:TestShared", + + #可执行程序 + "//third_party/test_executable/build_tmp/math:hello", + "//third_party/test_executable/build_tmp:Demo", + + ] +} diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeCache.txt b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeCache.txt new file mode 100644 index 0000000000000000000000000000000000000000..0c62ddc543575d7a15ca21e2b3aa811a3c387da4 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeCache.txt @@ -0,0 +1,356 @@ +# This is the CMakeCache file. +# For build in directory: /home/harmony/OpenHarmony/third_party/test_executable/build_tmp +# It was generated by CMake: /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line + +//Path to a program. +CMAKE_AR:FILEPATH=/usr/bin/ar + +//Choose the type of build, options are: None Debug Release RelWithDebInfo +// MinSizeRel ... +CMAKE_BUILD_TYPE:STRING= + +//Enable/Disable color output during build. +CMAKE_COLOR_MAKEFILE:BOOL=ON + +//LLVM archiver +CMAKE_CXX_COMPILER_AR:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar + +//Generate index for LLVM archive +CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib + +//Flags used by the CXX compiler during all build types. +CMAKE_CXX_FLAGS:STRING= + +//Flags used by the CXX compiler during DEBUG builds. +CMAKE_CXX_FLAGS_DEBUG:STRING=-g + +//Flags used by the CXX compiler during MINSIZEREL builds. +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the CXX compiler during RELEASE builds. +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the CXX compiler during RELWITHDEBINFO builds. +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//LLVM archiver +CMAKE_C_COMPILER_AR:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar + +//Generate index for LLVM archive +CMAKE_C_COMPILER_RANLIB:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib + +//Flags used by the C compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the C compiler during DEBUG builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the C compiler during MINSIZEREL builds. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the C compiler during RELEASE builds. +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the C compiler during RELWITHDEBINFO builds. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Path to a program. +CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND + +//Flags used by the linker during all build types. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during DEBUG builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during MINSIZEREL builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during RELEASE builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during RELWITHDEBINFO builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//No help, variable specified on the command line. +CMAKE_MAKE_PROGRAM:UNINITIALIZED=/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw + +//Flags used by the linker during the creation of modules during +// all build types. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of modules during +// DEBUG builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of modules during +// MINSIZEREL builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of modules during +// RELEASE builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of modules during +// RELWITHDEBINFO builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump + +//Value Computed by CMake +CMAKE_PROJECT_DESCRIPTION:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_HOMEPAGE_URL:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=Demo + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib + +//Path to a program. +CMAKE_READELF:FILEPATH=/usr/bin/readelf + +//Flags used by the linker during the creation of shared libraries +// during all build types. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of shared libraries +// during DEBUG builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of shared libraries +// during MINSIZEREL builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELEASE builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELWITHDEBINFO builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries +// during all build types. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of static libraries +// during DEBUG builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of static libraries +// during MINSIZEREL builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELEASE builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELWITHDEBINFO builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/usr/bin/strip + +//The CMake toolchain file +CMAKE_TOOLCHAIN_FILE:FILEPATH=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/ohos.toolchain.cmake + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Value Computed by CMake +Demo_BINARY_DIR:STATIC=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +//Value Computed by CMake +Demo_SOURCE_DIR:STATIC=/home/harmony/OpenHarmony/third_party/test_executable + +//Dependencies for the target +TestShared_LIB_DEPENDS:STATIC=general;MathFunctions; + +//Dependencies for the target +TestStatic_LIB_DEPENDS:STATIC=general;MathFunctions; + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_ADDR2LINE +CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=16 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=5 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/ctest +//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR +CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB +CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_AR +CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB +CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_DLLTOOL +CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 +//Path to cache edit program executable. +CMAKE_EDIT_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/ccmake +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Unix Makefiles +//Generator instance identifier. +CMAKE_GENERATOR_INSTANCE:INTERNAL= +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/home/harmony/OpenHarmony/third_party/test_executable +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=2 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_READELF +CMAKE_READELF-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/usr/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeCCompiler.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeCCompiler.cmake new file mode 100644 index 0000000000000000000000000000000000000000..50e14e7f5e5eda6834b2217913aa714b76cde732 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeCCompiler.cmake @@ -0,0 +1,76 @@ +set(CMAKE_C_COMPILER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "Clang") +set(CMAKE_C_COMPILER_VERSION "10.0.1") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") + +set(CMAKE_C_PLATFORM_ID "Linux") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU") +set(CMAKE_C_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_C_COMPILER_AR "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_C_COMPILER_RANLIB "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib") +set(CMAKE_LINKER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCC ) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "4") +set(CMAKE_C_COMPILER_ABI "ELF") +set(CMAKE_C_LIBRARY_ARCHITECTURE "") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include") +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeCXXCompiler.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeCXXCompiler.cmake new file mode 100644 index 0000000000000000000000000000000000000000..b0770a2035bd6162c13617396d32854b95995397 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeCXXCompiler.cmake @@ -0,0 +1,88 @@ +set(CMAKE_CXX_COMPILER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++") +set(CMAKE_CXX_COMPILER_ARG1 "") +set(CMAKE_CXX_COMPILER_ID "Clang") +set(CMAKE_CXX_COMPILER_VERSION "10.0.1") +set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") +set(CMAKE_CXX_COMPILER_WRAPPER "") +set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") +set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20") +set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") +set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") +set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") +set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") +set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20") + +set(CMAKE_CXX_PLATFORM_ID "Linux") +set(CMAKE_CXX_SIMULATE_ID "") +set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU") +set(CMAKE_CXX_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_CXX_COMPILER_AR "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_CXX_COMPILER_RANLIB "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib") +set(CMAKE_LINKER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCXX ) +set(CMAKE_CXX_COMPILER_LOADED 1) +set(CMAKE_CXX_COMPILER_WORKS TRUE) +set(CMAKE_CXX_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_CXX_COMPILER_ID_RUN 1) +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP) +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) + +foreach (lang C OBJC OBJCXX) + if (CMAKE_${lang}_COMPILER_ID_RUN) + foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS) + list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension}) + endforeach() + endif() +endforeach() + +set(CMAKE_CXX_LINKER_PREFERENCE 30) +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) + +# Save compiler ABI information. +set(CMAKE_CXX_SIZEOF_DATA_PTR "4") +set(CMAKE_CXX_COMPILER_ABI "ELF") +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "") + +if(CMAKE_CXX_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_CXX_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") +endif() + +if(CMAKE_CXX_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/include/c++/v1;/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include") +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "") +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "") +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin new file mode 100644 index 0000000000000000000000000000000000000000..15c9fc98319d9f50634ef4e38eaf0749e3525f9d Binary files /dev/null and b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin differ diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin new file mode 100644 index 0000000000000000000000000000000000000000..6d913716c47fe3836248de8e44b64d645d752696 Binary files /dev/null and b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin differ diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeSystem.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeSystem.cmake new file mode 100644 index 0000000000000000000000000000000000000000..177f13137babcc6214b0408187c12508da1f18fa --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-5.15.0-52-generic") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "5.15.0-52-generic") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + +include("/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/ohos.toolchain.cmake") + +set(CMAKE_SYSTEM "Linux") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(CMAKE_CROSSCOMPILING "TRUE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.c b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 0000000000000000000000000000000000000000..d884b50908c9852aad6d3b60781f4e529edc4d50 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,671 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 +# define COMPILER_ID "XL" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) +# define COMPILER_ID "SDCC" +# if defined(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) +# else + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if !defined(__STDC__) +# if (defined(_MSC_VER) && !defined(__clang__)) \ + || (defined(__ibmxl__) || defined(__IBMC__)) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o new file mode 100644 index 0000000000000000000000000000000000000000..29cca69f2273144af0f4d527f4fc4950810ecf73 Binary files /dev/null and b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o differ diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.cpp b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.cpp new file mode 100644 index 0000000000000000000000000000000000000000..69cfdba6bc7bccb09bf234388908de035caa0969 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.cpp @@ -0,0 +1,660 @@ +/* This source file must have a .cpp extension so that all C++ compilers + recognize the extension without flags. Borland does not know .cxx for + example. */ +#ifndef __cplusplus +# error "A C compiler has been selected for C++." +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__COMO__) +# define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) + +#elif defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_CC) +# define COMPILER_ID "SunPro" +# if __SUNPRO_CC >= 0x5100 + /* __SUNPRO_CC = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# endif + +#elif defined(__HP_aCC) +# define COMPILER_ID "HP" + /* __HP_aCC = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) + +#elif defined(__DECCXX) +# define COMPILER_ID "Compaq" + /* __DECCXX_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) + +#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 +# define COMPILER_ID "XL" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) || defined(__GNUG__) +# define COMPILER_ID "GNU" +# if defined(__GNUC__) +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# else +# define COMPILER_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L +# if defined(__INTEL_CXX11_MODE__) +# if defined(__cpp_aggregate_nsdmi) +# define CXX_STD 201402L +# else +# define CXX_STD 201103L +# endif +# else +# define CXX_STD 199711L +# endif +#elif defined(_MSC_VER) && defined(_MSVC_LANG) +# define CXX_STD _MSVC_LANG +#else +# define CXX_STD __cplusplus +#endif + +const char* info_language_dialect_default = "INFO" ":" "dialect_default[" +#if CXX_STD > 201703L + "20" +#elif CXX_STD >= 201703L + "17" +#elif CXX_STD >= 201402L + "14" +#elif CXX_STD >= 201103L + "11" +#else + "98" +#endif +"]"; + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o new file mode 100644 index 0000000000000000000000000000000000000000..693aeb8771de8ab36c33e43fb400be9fd271372f Binary files /dev/null and b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o differ diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeDirectoryInformation.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000000000000000000000000000000000000..75299785b9a7f503e3ab6755e7ea693c74bac366 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/harmony/OpenHarmony/third_party/test_executable") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeError.log b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeError.log new file mode 100644 index 0000000000000000000000000000000000000000..f02bcb34a5dafb1dab419e9fba1f8214df46cc11 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeError.log @@ -0,0 +1,29 @@ +Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: + +The output was: +1 +ld.lld: error: cannot open Scrt1.o: No such file or directory +ld.lld: error: cannot open crti.o: No such file or directory +ld.lld: error: unable to find library -lc +ld.lld: error: cannot open crtn.o: No such file or directory +clang-10: error: linker command failed with exit code 1 (use -v to see invocation) + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: + +The output was: +1 +ld.lld: error: cannot open Scrt1.o: No such file or directory +ld.lld: error: cannot open crti.o: No such file or directory +ld.lld: error: unable to find library -lm +ld.lld: error: unable to find library -lc +ld.lld: error: cannot open crtn.o: No such file or directory +clang-10: error: linker command failed with exit code 1 (use -v to see invocation) + + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeOutput.log b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeOutput.log new file mode 100644 index 0000000000000000000000000000000000000000..4f4853cd5d207cbc0e000a3d1970d98cc666f112 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/CMakeOutput.log @@ -0,0 +1,203 @@ +The target system is: Linux - - arm +The host system is: Linux - 5.15.0-52-generic - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: -c + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o" + +The C compiler identification is Clang, found in "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o" + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: -c + +The output was: +0 + + +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o" + +The CXX compiler identification is Clang, found in "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o" + +Determining if the C compiler works passed with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_47ed0/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_47ed0.dir/build.make CMakeFiles/cmTC_47ed0.dir/build +make_raw[1]: 进入目录“/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp” +Building C object CMakeFiles/cmTC_47ed0.dir/testCCompiler.c.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -o CMakeFiles/cmTC_47ed0.dir/testCCompiler.c.o -c /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C executable cmTC_47ed0 +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_47ed0.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -rdynamic CMakeFiles/cmTC_47ed0.dir/testCCompiler.c.o -o cmTC_47ed0 +make_raw[1]: 离开目录“/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp” + + + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_8ea15/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_8ea15.dir/build.make CMakeFiles/cmTC_8ea15.dir/build +make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + (in-process) + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang-10" -cc1 -triple armv7-unknown-linux-ohosmusl -emit-obj -mrelax-all -mnoexecstack -disable-free -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature +soft-float-abi -target-feature +vfp2 -target-feature +vfp2sp -target-feature +vfp3 -target-feature +vfp3d16 -target-feature +vfp3d16sp -target-feature +vfp3sp -target-feature +fp16 -target-feature +vfp4 -target-feature +vfp4d16 -target-feature +vfp4d16sp -target-feature +vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature +fp64 -target-feature +d32 -target-feature +neon -target-feature -crypto -target-feature -fp16fml -target-abi aapcs-linux -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1 -D __clang__ -isysroot /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -internal-isystem /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include -w -fdebug-compilation-dir /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -fno-signed-char -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -o CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o -x c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c +clang -cc1 version 10.0.1 based upon LLVM 10.0.1 default target x86_64-unknown-linux-gnu +ignoring nonexistent directory "/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include" +#include "..." search starts here: +#include <...> search starts here: + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include +End of search list. +Linking C executable cmTC_8ea15 +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8ea15.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -v -rdynamic CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o -o cmTC_8ea15 +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/ld.lld" --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -pie -z noexecstack -export-dynamic -EL --warn-shared-textrel -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m armelf_linux_eabi -export-dynamic -dynamic-linker /lib/ld-musl-arm.so.1 -o cmTC_8ea15 /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/Scrt1.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crti.o /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtbegin.o -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/ -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../lib/arm-linux-ohos/ -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/ --dynamic-linker /lib/ld-musl-arm.so.1 CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtend.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crtn.o +make_raw[1]: Leaving directory '/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp' + + + +Parsed C implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] + end of search list found + collapse include dir [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] ==> [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + implicit include dirs: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(clang|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_8ea15/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_8ea15.dir/build.make CMakeFiles/cmTC_8ea15.dir/build] + ignore line: [make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp'] + ignore line: [Building C object CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o] + link line: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c] + arg [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang] ==> ignore + arg [--sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/] ==> ignore + arg [--target=arm-linux-ohosmusl] ==> ignore + arg [-D__clang__] ==> ignore + arg [-march=armv7-a] ==> ignore + arg [-mfloat-abi=softfp] ==> ignore + arg [-mfpu=neon-vfpv4] ==> ignore + arg [-w] ==> ignore + arg [-v] ==> ignore + arg [-o] ==> ignore + arg [CMakeFiles/cmTC_8ea15.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-c] ==> ignore + arg [/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c] ==> ignore + implicit libs: [] + implicit dirs: [] + implicit fwks: [] + + +Determining if the CXX compiler works passed with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_e7584/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_e7584.dir/build.make CMakeFiles/cmTC_e7584.dir/build +make_raw[1]: 进入目录“/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp” +Building CXX object CMakeFiles/cmTC_e7584.dir/testCXXCompiler.cxx.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -o CMakeFiles/cmTC_e7584.dir/testCXXCompiler.cxx.o -c /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp/testCXXCompiler.cxx +Linking CXX executable cmTC_e7584 +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e7584.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -rdynamic CMakeFiles/cmTC_e7584.dir/testCXXCompiler.cxx.o -o cmTC_e7584 +make_raw[1]: 离开目录“/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp” + + + +Detecting CXX compiler ABI info compiled with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_b217b/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_b217b.dir/build.make CMakeFiles/cmTC_b217b.dir/build +make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + (in-process) + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang-10" -cc1 -triple armv7-unknown-linux-ohosmusl -emit-obj -mrelax-all -mnoexecstack -disable-free -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature +soft-float-abi -target-feature +vfp2 -target-feature +vfp2sp -target-feature +vfp3 -target-feature +vfp3d16 -target-feature +vfp3d16sp -target-feature +vfp3sp -target-feature +fp16 -target-feature +vfp4 -target-feature +vfp4d16 -target-feature +vfp4d16sp -target-feature +vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature +fp64 -target-feature +d32 -target-feature +neon -target-feature -crypto -target-feature -fp16fml -target-abi aapcs-linux -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1 -D __clang__ -isysroot /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -internal-isystem /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1 -internal-isystem /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include -w -fdeprecated-macro -fdebug-compilation-dir /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -fno-signed-char -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o -x c++ /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp +clang -cc1 version 10.0.1 based upon LLVM 10.0.1 default target x86_64-unknown-linux-gnu +ignoring nonexistent directory "/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include" +#include "..." search starts here: +#include <...> search starts here: + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1 + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include +End of search list. +Linking CXX executable cmTC_b217b +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b217b.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -v -rdynamic CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_b217b +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/ld.lld" --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -pie -z noexecstack -export-dynamic -EL --warn-shared-textrel -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m armelf_linux_eabi -export-dynamic -dynamic-linker /lib/ld-musl-arm.so.1 -o cmTC_b217b /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/Scrt1.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crti.o /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtbegin.o -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../lib/arm-linux-ohos/c++/ -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/ -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../lib/arm-linux-ohos/ -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/ --dynamic-linker /lib/ld-musl-arm.so.1 CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lc++abi -lunwind -lm /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtend.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crtn.o +make_raw[1]: Leaving directory '/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp' + + + +Parsed CXX implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1] + add: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] + end of search list found + collapse include dir [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1] ==> [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/include/c++/v1] + collapse include dir [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] ==> [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + implicit include dirs: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/include/c++/v1;/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + + +Parsed CXX implicit link information from above output: + link line regex: [^( *|.*[/\])(clang|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_b217b/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_b217b.dir/build.make CMakeFiles/cmTC_b217b.dir/build] + ignore line: [make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/CMakeTmp'] + ignore line: [Building CXX object CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o] + link line: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp] + arg [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++] ==> ignore + arg [--sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/] ==> ignore + arg [--target=arm-linux-ohosmusl] ==> ignore + arg [-D__clang__] ==> ignore + arg [-march=armv7-a] ==> ignore + arg [-mfloat-abi=softfp] ==> ignore + arg [-mfpu=neon-vfpv4] ==> ignore + arg [-w] ==> ignore + arg [-v] ==> ignore + arg [-o] ==> ignore + arg [CMakeFiles/cmTC_b217b.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [-c] ==> ignore + arg [/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp] ==> ignore + implicit libs: [] + implicit dirs: [] + implicit fwks: [] + + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..35a2ed16d971c360e2491c70ff686b477acefc30 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/DependInfo.cmake @@ -0,0 +1,29 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/home/harmony/OpenHarmony/third_party/test_executable/Function.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/Demo.dir/Function.cc.o" + "/home/harmony/OpenHarmony/third_party/test_executable/main.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/Demo.dir/main.cc.o" + ) +set(CMAKE_CXX_COMPILER_ID "Clang") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_CXX + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1" + ) + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "." + "math" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/DependInfo.cmake" + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/Function.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/Function.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/Function.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/build.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..7bd30e2f162ce25cc27ef701a397cc6a3b479421 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/build.make @@ -0,0 +1,114 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +# Include any dependencies generated for this target. +include CMakeFiles/Demo.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/Demo.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/Demo.dir/flags.make + +CMakeFiles/Demo.dir/Function.cc.o: CMakeFiles/Demo.dir/flags.make +CMakeFiles/Demo.dir/Function.cc.o: ../Function.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/Demo.dir/Function.cc.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/Demo.dir/Function.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/Function.cc + +CMakeFiles/Demo.dir/Function.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/Demo.dir/Function.cc.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/Function.cc > CMakeFiles/Demo.dir/Function.cc.i + +CMakeFiles/Demo.dir/Function.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/Demo.dir/Function.cc.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/Function.cc -o CMakeFiles/Demo.dir/Function.cc.s + +CMakeFiles/Demo.dir/main.cc.o: CMakeFiles/Demo.dir/flags.make +CMakeFiles/Demo.dir/main.cc.o: ../main.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/Demo.dir/main.cc.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/Demo.dir/main.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/main.cc + +CMakeFiles/Demo.dir/main.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/Demo.dir/main.cc.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/main.cc > CMakeFiles/Demo.dir/main.cc.i + +CMakeFiles/Demo.dir/main.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/Demo.dir/main.cc.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/main.cc -o CMakeFiles/Demo.dir/main.cc.s + +# Object files for target Demo +Demo_OBJECTS = \ +"CMakeFiles/Demo.dir/Function.cc.o" \ +"CMakeFiles/Demo.dir/main.cc.o" + +# External object files for target Demo +Demo_EXTERNAL_OBJECTS = + +Demo: CMakeFiles/Demo.dir/Function.cc.o +Demo: CMakeFiles/Demo.dir/main.cc.o +Demo: CMakeFiles/Demo.dir/build.make +Demo: math/libMathFunctions.a +Demo: CMakeFiles/Demo.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking CXX executable Demo" + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/Demo.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/Demo.dir/build: Demo + +.PHONY : CMakeFiles/Demo.dir/build + +CMakeFiles/Demo.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/Demo.dir/cmake_clean.cmake +.PHONY : CMakeFiles/Demo.dir/clean + +CMakeFiles/Demo.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/Demo.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/Demo.dir/depend + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..50ffae034cb1506e5858310cb18eaf4f3583f087 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/cmake_clean.cmake @@ -0,0 +1,11 @@ +file(REMOVE_RECURSE + "CMakeFiles/Demo.dir/Function.cc.o" + "CMakeFiles/Demo.dir/main.cc.o" + "Demo" + "Demo.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/Demo.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/depend.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..90dce174bcadfcb088aca0fb8da085cb94f3fd94 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for Demo. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/flags.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..5994c1792df94e91f53d01d4b7e6af70706ba3bd --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +CXX_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -std=gnu++11 + +CXX_DEFINES = -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 + +CXX_INCLUDES = -I/home/harmony/OpenHarmony/third_party/test_executable/build_tmp -I/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/link.txt b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..7a234fec98e4ebba839e00981089ae83e63f32b8 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/link.txt @@ -0,0 +1 @@ +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -rdynamic CMakeFiles/Demo.dir/Function.cc.o CMakeFiles/Demo.dir/main.cc.o -o Demo math/libMathFunctions.a diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/main.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/main.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/main.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/progress.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..6a9dc74f48190611094be92ae37d081d83beb533 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Demo.dir/progress.make @@ -0,0 +1,4 @@ +CMAKE_PROGRESS_1 = 1 +CMAKE_PROGRESS_2 = 2 +CMAKE_PROGRESS_3 = 3 + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Makefile.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Makefile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..81c3869f8a411dfcbd3c5b8aa4ab691c6f62a210 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Makefile.cmake @@ -0,0 +1,129 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# The generator used is: +set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") + +# The top level Makefile was generated from the following files: +set(CMAKE_MAKEFILE_DEPENDS + "CMakeCache.txt" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompiler.cmake.in" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompiler.cmake.in" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCompilerIdDetection.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCXXCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompileFeatures.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompilerABI.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompilerId.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeFindBinUtils.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeGenericSystem.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeParseImplicitIncludeInfo.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeParseImplicitLinkInfo.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeSystem.cmake.in" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/ADSP-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/ARMCC-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/ARMClang-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/AppleClang-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Borland-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-C.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-FindBinUtils.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Cray-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GHS-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GNU-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GNU.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/HP-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/HP-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/IAR-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Intel-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/MSVC-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/PGI-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/PathScale-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SCO-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/TI-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Watcom-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XL-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XL-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XLClang-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/zOS-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Internal/FeatureTesting.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-Clang-C.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-Clang-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-Determine-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-GNU-C.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-GNU-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-GNU.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/UnixPaths.cmake" + "../CMakeLists.txt" + "CMakeFiles/3.16.5/CMakeCCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" + "CMakeFiles/3.16.5/CMakeSystem.cmake" + "ohos.toolchain.cmake" + "../math/CMakeLists.txt" + ) + +# The corresponding makefile is: +set(CMAKE_MAKEFILE_OUTPUTS + "Makefile" + "CMakeFiles/cmake.check_cache" + ) + +# Byproducts of CMake generate step: +set(CMAKE_MAKEFILE_PRODUCTS + "CMakeFiles/3.16.5/CMakeSystem.cmake" + "CMakeFiles/3.16.5/CMakeCCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" + "CMakeFiles/CMakeDirectoryInformation.cmake" + "math/CMakeFiles/CMakeDirectoryInformation.cmake" + ) + +# Dependency information for all targets: +set(CMAKE_DEPEND_INFO_FILES + "CMakeFiles/Demo.dir/DependInfo.cmake" + "CMakeFiles/TestStatic.dir/DependInfo.cmake" + "CMakeFiles/TestShared.dir/DependInfo.cmake" + "math/CMakeFiles/hello.dir/DependInfo.cmake" + "math/CMakeFiles/MathFunctions.dir/DependInfo.cmake" + ) diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Makefile2 b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Makefile2 new file mode 100644 index 0000000000000000000000000000000000000000..bba9f7e7213a318ab97596bf50a629db11697ecc --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/Makefile2 @@ -0,0 +1,240 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +#============================================================================= +# Directory level rules for the build root directory + +# The main recursive "all" target. +all: CMakeFiles/Demo.dir/all +all: CMakeFiles/TestStatic.dir/all +all: CMakeFiles/TestShared.dir/all +all: math/all + +.PHONY : all + +# The main recursive "preinstall" target. +preinstall: math/preinstall + +.PHONY : preinstall + +# The main recursive "clean" target. +clean: CMakeFiles/Demo.dir/clean +clean: CMakeFiles/TestStatic.dir/clean +clean: CMakeFiles/TestShared.dir/clean +clean: math/clean + +.PHONY : clean + +#============================================================================= +# Directory level rules for directory math + +# Recursive "all" directory target. +math/all: math/CMakeFiles/hello.dir/all +math/all: math/CMakeFiles/MathFunctions.dir/all + +.PHONY : math/all + +# Recursive "preinstall" directory target. +math/preinstall: + +.PHONY : math/preinstall + +# Recursive "clean" directory target. +math/clean: math/CMakeFiles/hello.dir/clean +math/clean: math/CMakeFiles/MathFunctions.dir/clean + +.PHONY : math/clean + +#============================================================================= +# Target rules for target CMakeFiles/Demo.dir + +# All Build rule for target. +CMakeFiles/Demo.dir/all: math/CMakeFiles/MathFunctions.dir/all + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/depend + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=1,2,3 "Built target Demo" +.PHONY : CMakeFiles/Demo.dir/all + +# Build rule for subdir invocation for target. +CMakeFiles/Demo.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 5 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/Demo.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 0 +.PHONY : CMakeFiles/Demo.dir/rule + +# Convenience name for target. +Demo: CMakeFiles/Demo.dir/rule + +.PHONY : Demo + +# clean rule for target. +CMakeFiles/Demo.dir/clean: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/clean +.PHONY : CMakeFiles/Demo.dir/clean + +#============================================================================= +# Target rules for target CMakeFiles/TestStatic.dir + +# All Build rule for target. +CMakeFiles/TestStatic.dir/all: math/CMakeFiles/MathFunctions.dir/all + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/depend + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=9,10,11 "Built target TestStatic" +.PHONY : CMakeFiles/TestStatic.dir/all + +# Build rule for subdir invocation for target. +CMakeFiles/TestStatic.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 5 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/TestStatic.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 0 +.PHONY : CMakeFiles/TestStatic.dir/rule + +# Convenience name for target. +TestStatic: CMakeFiles/TestStatic.dir/rule + +.PHONY : TestStatic + +# clean rule for target. +CMakeFiles/TestStatic.dir/clean: + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/clean +.PHONY : CMakeFiles/TestStatic.dir/clean + +#============================================================================= +# Target rules for target CMakeFiles/TestShared.dir + +# All Build rule for target. +CMakeFiles/TestShared.dir/all: math/CMakeFiles/MathFunctions.dir/all + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/depend + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=6,7,8 "Built target TestShared" +.PHONY : CMakeFiles/TestShared.dir/all + +# Build rule for subdir invocation for target. +CMakeFiles/TestShared.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 5 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/TestShared.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 0 +.PHONY : CMakeFiles/TestShared.dir/rule + +# Convenience name for target. +TestShared: CMakeFiles/TestShared.dir/rule + +.PHONY : TestShared + +# clean rule for target. +CMakeFiles/TestShared.dir/clean: + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/clean +.PHONY : CMakeFiles/TestShared.dir/clean + +#============================================================================= +# Target rules for target math/CMakeFiles/hello.dir + +# All Build rule for target. +math/CMakeFiles/hello.dir/all: + $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/depend + $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=12,13 "Built target hello" +.PHONY : math/CMakeFiles/hello.dir/all + +# Build rule for subdir invocation for target. +math/CMakeFiles/hello.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 2 + $(MAKE) -f CMakeFiles/Makefile2 math/CMakeFiles/hello.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 0 +.PHONY : math/CMakeFiles/hello.dir/rule + +# Convenience name for target. +hello: math/CMakeFiles/hello.dir/rule + +.PHONY : hello + +# clean rule for target. +math/CMakeFiles/hello.dir/clean: + $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/clean +.PHONY : math/CMakeFiles/hello.dir/clean + +#============================================================================= +# Target rules for target math/CMakeFiles/MathFunctions.dir + +# All Build rule for target. +math/CMakeFiles/MathFunctions.dir/all: + $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/depend + $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=4,5 "Built target MathFunctions" +.PHONY : math/CMakeFiles/MathFunctions.dir/all + +# Build rule for subdir invocation for target. +math/CMakeFiles/MathFunctions.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 2 + $(MAKE) -f CMakeFiles/Makefile2 math/CMakeFiles/MathFunctions.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 0 +.PHONY : math/CMakeFiles/MathFunctions.dir/rule + +# Convenience name for target. +MathFunctions: math/CMakeFiles/MathFunctions.dir/rule + +.PHONY : MathFunctions + +# clean rule for target. +math/CMakeFiles/MathFunctions.dir/clean: + $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/clean +.PHONY : math/CMakeFiles/MathFunctions.dir/clean + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TargetDirectories.txt b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TargetDirectories.txt new file mode 100644 index 0000000000000000000000000000000000000000..49700e3863b5cdf7fe9e45476f7603be9b134814 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,9 @@ +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/rebuild_cache.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/Demo.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestStatic.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestShared.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/edit_cache.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/rebuild_cache.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/edit_cache.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/hello.dir +/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..7c24100e33e39431b202ee6ef8a62359cbc6eec6 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/DependInfo.cmake @@ -0,0 +1,30 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/home/harmony/OpenHarmony/third_party/test_executable/Function.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestShared.dir/Function.cc.o" + "/home/harmony/OpenHarmony/third_party/test_executable/main.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestShared.dir/main.cc.o" + ) +set(CMAKE_CXX_COMPILER_ID "Clang") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_CXX + "TestShared_EXPORTS" + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1" + ) + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "." + "math" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/DependInfo.cmake" + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/Function.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/Function.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/Function.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/build.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..e4d55fa26931a1d2415f2aca8ecc172defd0851e --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/build.make @@ -0,0 +1,114 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +# Include any dependencies generated for this target. +include CMakeFiles/TestShared.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/TestShared.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/TestShared.dir/flags.make + +CMakeFiles/TestShared.dir/Function.cc.o: CMakeFiles/TestShared.dir/flags.make +CMakeFiles/TestShared.dir/Function.cc.o: ../Function.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/TestShared.dir/Function.cc.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/TestShared.dir/Function.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/Function.cc + +CMakeFiles/TestShared.dir/Function.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/TestShared.dir/Function.cc.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/Function.cc > CMakeFiles/TestShared.dir/Function.cc.i + +CMakeFiles/TestShared.dir/Function.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/TestShared.dir/Function.cc.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/Function.cc -o CMakeFiles/TestShared.dir/Function.cc.s + +CMakeFiles/TestShared.dir/main.cc.o: CMakeFiles/TestShared.dir/flags.make +CMakeFiles/TestShared.dir/main.cc.o: ../main.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/TestShared.dir/main.cc.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/TestShared.dir/main.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/main.cc + +CMakeFiles/TestShared.dir/main.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/TestShared.dir/main.cc.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/main.cc > CMakeFiles/TestShared.dir/main.cc.i + +CMakeFiles/TestShared.dir/main.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/TestShared.dir/main.cc.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/main.cc -o CMakeFiles/TestShared.dir/main.cc.s + +# Object files for target TestShared +TestShared_OBJECTS = \ +"CMakeFiles/TestShared.dir/Function.cc.o" \ +"CMakeFiles/TestShared.dir/main.cc.o" + +# External object files for target TestShared +TestShared_EXTERNAL_OBJECTS = + +libTestShared.so: CMakeFiles/TestShared.dir/Function.cc.o +libTestShared.so: CMakeFiles/TestShared.dir/main.cc.o +libTestShared.so: CMakeFiles/TestShared.dir/build.make +libTestShared.so: math/libMathFunctions.a +libTestShared.so: CMakeFiles/TestShared.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking CXX shared library libTestShared.so" + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/TestShared.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/TestShared.dir/build: libTestShared.so + +.PHONY : CMakeFiles/TestShared.dir/build + +CMakeFiles/TestShared.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/TestShared.dir/cmake_clean.cmake +.PHONY : CMakeFiles/TestShared.dir/clean + +CMakeFiles/TestShared.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestShared.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/TestShared.dir/depend + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..98be1f2ded1aeba9db1e9271a666d17bdeac5c88 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/cmake_clean.cmake @@ -0,0 +1,11 @@ +file(REMOVE_RECURSE + "CMakeFiles/TestShared.dir/Function.cc.o" + "CMakeFiles/TestShared.dir/main.cc.o" + "libTestShared.pdb" + "libTestShared.so" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/TestShared.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/depend.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..b2c76d411f71d6ad2061f3729abb6f1beac0f6b1 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for TestShared. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/flags.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..47991a8175cfb9788c0bd613f7028be58f5fcb13 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +CXX_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -fPIC -std=gnu++11 + +CXX_DEFINES = -DTestShared_EXPORTS -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 + +CXX_INCLUDES = -I/home/harmony/OpenHarmony/third_party/test_executable/build_tmp -I/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/link.txt b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..50140084fdf11990ea1208bcad8cdbe3510bae2b --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/link.txt @@ -0,0 +1 @@ +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -fPIC --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -shared -Wl,-soname,libTestShared.so -o libTestShared.so CMakeFiles/TestShared.dir/Function.cc.o CMakeFiles/TestShared.dir/main.cc.o math/libMathFunctions.a diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/main.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/main.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/main.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/progress.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..0c17d91085424671eeb48994a5ca6ca50d23a19c --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestShared.dir/progress.make @@ -0,0 +1,4 @@ +CMAKE_PROGRESS_1 = 6 +CMAKE_PROGRESS_2 = 7 +CMAKE_PROGRESS_3 = 8 + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..a0f87b62d0b33dc82edb601a52fe663026368dac --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/DependInfo.cmake @@ -0,0 +1,29 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/home/harmony/OpenHarmony/third_party/test_executable/Function.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestStatic.dir/Function.cc.o" + "/home/harmony/OpenHarmony/third_party/test_executable/main.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestStatic.dir/main.cc.o" + ) +set(CMAKE_CXX_COMPILER_ID "Clang") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_CXX + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1" + ) + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "." + "math" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/DependInfo.cmake" + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/Function.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/Function.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/Function.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/build.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..4a08adcce6b8126d7e9b6d41f8e203510d4dc27f --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/build.make @@ -0,0 +1,114 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +# Include any dependencies generated for this target. +include CMakeFiles/TestStatic.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/TestStatic.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/TestStatic.dir/flags.make + +CMakeFiles/TestStatic.dir/Function.cc.o: CMakeFiles/TestStatic.dir/flags.make +CMakeFiles/TestStatic.dir/Function.cc.o: ../Function.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/TestStatic.dir/Function.cc.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/TestStatic.dir/Function.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/Function.cc + +CMakeFiles/TestStatic.dir/Function.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/TestStatic.dir/Function.cc.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/Function.cc > CMakeFiles/TestStatic.dir/Function.cc.i + +CMakeFiles/TestStatic.dir/Function.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/TestStatic.dir/Function.cc.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/Function.cc -o CMakeFiles/TestStatic.dir/Function.cc.s + +CMakeFiles/TestStatic.dir/main.cc.o: CMakeFiles/TestStatic.dir/flags.make +CMakeFiles/TestStatic.dir/main.cc.o: ../main.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/TestStatic.dir/main.cc.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/TestStatic.dir/main.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/main.cc + +CMakeFiles/TestStatic.dir/main.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/TestStatic.dir/main.cc.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/main.cc > CMakeFiles/TestStatic.dir/main.cc.i + +CMakeFiles/TestStatic.dir/main.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/TestStatic.dir/main.cc.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/main.cc -o CMakeFiles/TestStatic.dir/main.cc.s + +# Object files for target TestStatic +TestStatic_OBJECTS = \ +"CMakeFiles/TestStatic.dir/Function.cc.o" \ +"CMakeFiles/TestStatic.dir/main.cc.o" + +# External object files for target TestStatic +TestStatic_EXTERNAL_OBJECTS = + +libTestStatic.a: CMakeFiles/TestStatic.dir/Function.cc.o +libTestStatic.a: CMakeFiles/TestStatic.dir/main.cc.o +libTestStatic.a: CMakeFiles/TestStatic.dir/build.make +libTestStatic.a: CMakeFiles/TestStatic.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking CXX static library libTestStatic.a" + $(CMAKE_COMMAND) -P CMakeFiles/TestStatic.dir/cmake_clean_target.cmake + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/TestStatic.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/TestStatic.dir/build: libTestStatic.a + +.PHONY : CMakeFiles/TestStatic.dir/build + +CMakeFiles/TestStatic.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/TestStatic.dir/cmake_clean.cmake +.PHONY : CMakeFiles/TestStatic.dir/clean + +CMakeFiles/TestStatic.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/TestStatic.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/TestStatic.dir/depend + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..66c047af88c9216fa347c1d0933c68c31b0e8a6d --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/cmake_clean.cmake @@ -0,0 +1,11 @@ +file(REMOVE_RECURSE + "CMakeFiles/TestStatic.dir/Function.cc.o" + "CMakeFiles/TestStatic.dir/main.cc.o" + "libTestStatic.a" + "libTestStatic.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/TestStatic.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/cmake_clean_target.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/cmake_clean_target.cmake new file mode 100644 index 0000000000000000000000000000000000000000..e20231d15d2c63a684f96aeaf86370b23caab9bc --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/cmake_clean_target.cmake @@ -0,0 +1,3 @@ +file(REMOVE_RECURSE + "libTestStatic.a" +) diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/depend.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..99333a2b4cbcbc816e944f5fa229218d8ca3933b --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for TestStatic. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/flags.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..5994c1792df94e91f53d01d4b7e6af70706ba3bd --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +CXX_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -std=gnu++11 + +CXX_DEFINES = -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 + +CXX_INCLUDES = -I/home/harmony/OpenHarmony/third_party/test_executable/build_tmp -I/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/link.txt b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..69dfc5e8c66252c62b4c18b566cd1720013e1c7f --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/link.txt @@ -0,0 +1,2 @@ +/usr/bin/ar qc libTestStatic.a CMakeFiles/TestStatic.dir/Function.cc.o CMakeFiles/TestStatic.dir/main.cc.o +/usr/bin/ranlib libTestStatic.a diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/main.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/main.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/main.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/progress.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..eaef64c29c7354c3564a8bd2a84e7df46e9000cc --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/TestStatic.dir/progress.make @@ -0,0 +1,4 @@ +CMAKE_PROGRESS_1 = 9 +CMAKE_PROGRESS_2 = 10 +CMAKE_PROGRESS_3 = 11 + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/cmake.check_cache b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/cmake.check_cache new file mode 100644 index 0000000000000000000000000000000000000000..3dccd731726d7faa8b29d8d7dba3b981a53ca497 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/progress.marks b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/progress.marks new file mode 100644 index 0000000000000000000000000000000000000000..b1bd38b62a0800a4f6a80c34e21c5acffae52c7e --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/CMakeFiles/progress.marks @@ -0,0 +1 @@ +13 diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/Demo b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/Demo new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/Demo @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/Makefile b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..4a0ad45183ba5c9d7ec583f93858142b4110dbf4 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/Makefile @@ -0,0 +1,276 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named Demo + +# Build rule for target. +Demo: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 Demo +.PHONY : Demo + +# fast build rule for target. +Demo/fast: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/build +.PHONY : Demo/fast + +#============================================================================= +# Target rules for targets named TestStatic + +# Build rule for target. +TestStatic: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 TestStatic +.PHONY : TestStatic + +# fast build rule for target. +TestStatic/fast: + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/build +.PHONY : TestStatic/fast + +#============================================================================= +# Target rules for targets named TestShared + +# Build rule for target. +TestShared: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 TestShared +.PHONY : TestShared + +# fast build rule for target. +TestShared/fast: + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/build +.PHONY : TestShared/fast + +#============================================================================= +# Target rules for targets named hello + +# Build rule for target. +hello: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 hello +.PHONY : hello + +# fast build rule for target. +hello/fast: + $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/build +.PHONY : hello/fast + +#============================================================================= +# Target rules for targets named MathFunctions + +# Build rule for target. +MathFunctions: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 MathFunctions +.PHONY : MathFunctions + +# fast build rule for target. +MathFunctions/fast: + $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/build +.PHONY : MathFunctions/fast + +Function.o: Function.cc.o + +.PHONY : Function.o + +# target to build an object file +Function.cc.o: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/Function.cc.o + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/Function.cc.o + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/Function.cc.o +.PHONY : Function.cc.o + +Function.i: Function.cc.i + +.PHONY : Function.i + +# target to preprocess a source file +Function.cc.i: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/Function.cc.i + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/Function.cc.i + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/Function.cc.i +.PHONY : Function.cc.i + +Function.s: Function.cc.s + +.PHONY : Function.s + +# target to generate assembly for a file +Function.cc.s: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/Function.cc.s + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/Function.cc.s + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/Function.cc.s +.PHONY : Function.cc.s + +main.o: main.cc.o + +.PHONY : main.o + +# target to build an object file +main.cc.o: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/main.cc.o + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/main.cc.o + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/main.cc.o +.PHONY : main.cc.o + +main.i: main.cc.i + +.PHONY : main.i + +# target to preprocess a source file +main.cc.i: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/main.cc.i + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/main.cc.i + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/main.cc.i +.PHONY : main.cc.i + +main.s: main.cc.s + +.PHONY : main.s + +# target to generate assembly for a file +main.cc.s: + $(MAKE) -f CMakeFiles/Demo.dir/build.make CMakeFiles/Demo.dir/main.cc.s + $(MAKE) -f CMakeFiles/TestStatic.dir/build.make CMakeFiles/TestStatic.dir/main.cc.s + $(MAKE) -f CMakeFiles/TestShared.dir/build.make CMakeFiles/TestShared.dir/main.cc.s +.PHONY : main.cc.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... Demo" + @echo "... TestStatic" + @echo "... TestShared" + @echo "... edit_cache" + @echo "... hello" + @echo "... MathFunctions" + @echo "... Function.o" + @echo "... Function.i" + @echo "... Function.s" + @echo "... main.o" + @echo "... main.i" + @echo "... main.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/cmake_install.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/cmake_install.cmake new file mode 100644 index 0000000000000000000000000000000000000000..4acf03cb390da79b619372a6af254e876dc2bec4 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/cmake_install.cmake @@ -0,0 +1,55 @@ +# Install script for directory: /home/harmony/OpenHarmony/third_party/test_executable + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "TRUE") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/cmake_install.cmake") + +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/libTestShared.so b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/libTestShared.so new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/libTestShared.so @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/libTestStatic.a b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/libTestStatic.a new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/libTestStatic.a @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/BUILD.gn b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..cfc27c86c6f8cc463520f644379f8f7467e5e4ae --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/BUILD.gn @@ -0,0 +1,98 @@ +import("//build/ohos.gni") + +config("MathFunctions_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4", + "-Wno-unused-command-line-argument" + ] + + cflags_cc = [ + "-std=c++17", + "-std=gnu++11" + ] +} + +ohos_static_library("MathFunctions") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":MathFunctions_config" ] + + sources = [ + "//third_party/test_executable/math/MathFunctions.cc" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1", + "__clang__" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + +config("hello_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4", + "-Wno-unused-command-line-argument" + ] + + cflags_cc = [ + "-std=c++17", + "-std=gnu++11" + ] +} + +ohos_executable("hello") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":hello_config" ] + + sources = [ + "//third_party/test_executable/math/MathFunctions.cc" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1", + "__clang__" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/CMakeDirectoryInformation.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000000000000000000000000000000000000..75299785b9a7f503e3ab6755e7ea693c74bac366 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/harmony/OpenHarmony/third_party/test_executable") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..c4ffc532f953e1a67cc151269d8258af6a7157d2 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/DependInfo.cmake @@ -0,0 +1,25 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o" + ) +set(CMAKE_CXX_COMPILER_ID "Clang") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_CXX + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1" + ) + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/build.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..6d414e478707d575fc80f9062c30c6e55fd0fe77 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/build.make @@ -0,0 +1,99 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +# Include any dependencies generated for this target. +include math/CMakeFiles/MathFunctions.dir/depend.make + +# Include the progress variables for this target. +include math/CMakeFiles/MathFunctions.dir/progress.make + +# Include the compile flags for this target's objects. +include math/CMakeFiles/MathFunctions.dir/flags.make + +math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o: math/CMakeFiles/MathFunctions.dir/flags.make +math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o: ../math/MathFunctions.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/MathFunctions.dir/MathFunctions.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc + +math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/MathFunctions.dir/MathFunctions.cc.i" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc > CMakeFiles/MathFunctions.dir/MathFunctions.cc.i + +math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/MathFunctions.dir/MathFunctions.cc.s" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc -o CMakeFiles/MathFunctions.dir/MathFunctions.cc.s + +# Object files for target MathFunctions +MathFunctions_OBJECTS = \ +"CMakeFiles/MathFunctions.dir/MathFunctions.cc.o" + +# External object files for target MathFunctions +MathFunctions_EXTERNAL_OBJECTS = + +math/libMathFunctions.a: math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o +math/libMathFunctions.a: math/CMakeFiles/MathFunctions.dir/build.make +math/libMathFunctions.a: math/CMakeFiles/MathFunctions.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX static library libMathFunctions.a" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && $(CMAKE_COMMAND) -P CMakeFiles/MathFunctions.dir/cmake_clean_target.cmake + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/MathFunctions.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +math/CMakeFiles/MathFunctions.dir/build: math/libMathFunctions.a + +.PHONY : math/CMakeFiles/MathFunctions.dir/build + +math/CMakeFiles/MathFunctions.dir/clean: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && $(CMAKE_COMMAND) -P CMakeFiles/MathFunctions.dir/cmake_clean.cmake +.PHONY : math/CMakeFiles/MathFunctions.dir/clean + +math/CMakeFiles/MathFunctions.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable/math /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : math/CMakeFiles/MathFunctions.dir/depend + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..463103b744dfe2bc2224db7698b3ee5a6cd4e130 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/MathFunctions.dir/MathFunctions.cc.o" + "libMathFunctions.a" + "libMathFunctions.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/MathFunctions.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/cmake_clean_target.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/cmake_clean_target.cmake new file mode 100644 index 0000000000000000000000000000000000000000..59d6ddec523ba0b1bb4d5d56be5ee84c441c099e --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/cmake_clean_target.cmake @@ -0,0 +1,3 @@ +file(REMOVE_RECURSE + "libMathFunctions.a" +) diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/depend.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..21bb1c13f7ecfb83bc5dca8cd5f76f8ddfa4bf13 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for MathFunctions. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/flags.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..65b4dbc174d2f90ec46df873d067e73cea3d36de --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +CXX_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -std=gnu++11 + +CXX_DEFINES = -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 + +CXX_INCLUDES = + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/link.txt b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..6d12e74d25192796964fe0280eb69d3595e2671a --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/link.txt @@ -0,0 +1,2 @@ +/usr/bin/ar qc libMathFunctions.a CMakeFiles/MathFunctions.dir/MathFunctions.cc.o +/usr/bin/ranlib libMathFunctions.a diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/progress.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..19ce96ee79209cb1256758487b084f3bf13432af --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/MathFunctions.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 4 +CMAKE_PROGRESS_2 = 5 + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..c0ac93e7e7efcf2070e9806fd7e63952984f544a --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/DependInfo.cmake @@ -0,0 +1,25 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc" "/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/hello.dir/MathFunctions.cc.o" + ) +set(CMAKE_CXX_COMPILER_ID "Clang") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_CXX + "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1" + ) + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/MathFunctions.cc.o b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/MathFunctions.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/MathFunctions.cc.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/build.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..4f6081a4d68c30bd963e195c64a3e2ad2a60b388 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/build.make @@ -0,0 +1,98 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +# Include any dependencies generated for this target. +include math/CMakeFiles/hello.dir/depend.make + +# Include the progress variables for this target. +include math/CMakeFiles/hello.dir/progress.make + +# Include the compile flags for this target's objects. +include math/CMakeFiles/hello.dir/flags.make + +math/CMakeFiles/hello.dir/MathFunctions.cc.o: math/CMakeFiles/hello.dir/flags.make +math/CMakeFiles/hello.dir/MathFunctions.cc.o: ../math/MathFunctions.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object math/CMakeFiles/hello.dir/MathFunctions.cc.o" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/hello.dir/MathFunctions.cc.o -c /home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc + +math/CMakeFiles/hello.dir/MathFunctions.cc.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/hello.dir/MathFunctions.cc.i" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc > CMakeFiles/hello.dir/MathFunctions.cc.i + +math/CMakeFiles/hello.dir/MathFunctions.cc.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/hello.dir/MathFunctions.cc.s" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_executable/math/MathFunctions.cc -o CMakeFiles/hello.dir/MathFunctions.cc.s + +# Object files for target hello +hello_OBJECTS = \ +"CMakeFiles/hello.dir/MathFunctions.cc.o" + +# External object files for target hello +hello_EXTERNAL_OBJECTS = + +math/hello: math/CMakeFiles/hello.dir/MathFunctions.cc.o +math/hello: math/CMakeFiles/hello.dir/build.make +math/hello: math/CMakeFiles/hello.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable hello" + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/hello.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +math/CMakeFiles/hello.dir/build: math/hello + +.PHONY : math/CMakeFiles/hello.dir/build + +math/CMakeFiles/hello.dir/clean: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math && $(CMAKE_COMMAND) -P CMakeFiles/hello.dir/cmake_clean.cmake +.PHONY : math/CMakeFiles/hello.dir/clean + +math/CMakeFiles/hello.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_executable /home/harmony/OpenHarmony/third_party/test_executable/math /home/harmony/OpenHarmony/third_party/test_executable/build_tmp /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/hello.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : math/CMakeFiles/hello.dir/depend + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..8e0388faf37968e9eb45f8feab1072d9b1bdc8a9 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/hello.dir/MathFunctions.cc.o" + "hello" + "hello.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/hello.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/depend.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..ebdf3a5cf84d1bc90d91f5d9f3773dada9d7d16b --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for hello. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/flags.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..65b4dbc174d2f90ec46df873d067e73cea3d36de --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +CXX_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -std=gnu++11 + +CXX_DEFINES = -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 + +CXX_INCLUDES = + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/link.txt b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..64612f47c51fd94a96358d607a638f1f64cff295 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/link.txt @@ -0,0 +1 @@ +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -std=c++17 -Wno-unused-command-line-argument -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -rdynamic CMakeFiles/hello.dir/MathFunctions.cc.o -o hello diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/progress.make b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..7df1340bfd15f30e69323732abd474231c0c47b0 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/hello.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 12 +CMAKE_PROGRESS_2 = 13 + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/progress.marks b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/progress.marks new file mode 100644 index 0000000000000000000000000000000000000000..b8626c4cff2849624fb67f87cd0ad72b163671ad --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/CMakeFiles/progress.marks @@ -0,0 +1 @@ +4 diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/Makefile b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..29ad57d64be3da5e06f14c8ccd064db2e7a7ba0a --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/Makefile @@ -0,0 +1,199 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_executable + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_executable/build_tmp + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/math/CMakeFiles/progress.marks + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f CMakeFiles/Makefile2 math/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_executable/build_tmp/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f CMakeFiles/Makefile2 math/clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f CMakeFiles/Makefile2 math/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f CMakeFiles/Makefile2 math/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +math/CMakeFiles/hello.dir/rule: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f CMakeFiles/Makefile2 math/CMakeFiles/hello.dir/rule +.PHONY : math/CMakeFiles/hello.dir/rule + +# Convenience name for target. +hello: math/CMakeFiles/hello.dir/rule + +.PHONY : hello + +# fast build rule for target. +hello/fast: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/build +.PHONY : hello/fast + +# Convenience name for target. +math/CMakeFiles/MathFunctions.dir/rule: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f CMakeFiles/Makefile2 math/CMakeFiles/MathFunctions.dir/rule +.PHONY : math/CMakeFiles/MathFunctions.dir/rule + +# Convenience name for target. +MathFunctions: math/CMakeFiles/MathFunctions.dir/rule + +.PHONY : MathFunctions + +# fast build rule for target. +MathFunctions/fast: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/build +.PHONY : MathFunctions/fast + +MathFunctions.o: MathFunctions.cc.o + +.PHONY : MathFunctions.o + +# target to build an object file +MathFunctions.cc.o: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/MathFunctions.cc.o + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.o +.PHONY : MathFunctions.cc.o + +MathFunctions.i: MathFunctions.cc.i + +.PHONY : MathFunctions.i + +# target to preprocess a source file +MathFunctions.cc.i: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/MathFunctions.cc.i + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.i +.PHONY : MathFunctions.cc.i + +MathFunctions.s: MathFunctions.cc.s + +.PHONY : MathFunctions.s + +# target to generate assembly for a file +MathFunctions.cc.s: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/hello.dir/build.make math/CMakeFiles/hello.dir/MathFunctions.cc.s + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(MAKE) -f math/CMakeFiles/MathFunctions.dir/build.make math/CMakeFiles/MathFunctions.dir/MathFunctions.cc.s +.PHONY : MathFunctions.cc.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... edit_cache" + @echo "... hello" + @echo "... MathFunctions" + @echo "... MathFunctions.o" + @echo "... MathFunctions.i" + @echo "... MathFunctions.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/harmony/OpenHarmony/third_party/test_executable/build_tmp && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/cmake_install.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/cmake_install.cmake new file mode 100644 index 0000000000000000000000000000000000000000..084071b94d56d56d1c130f91b611edfe114458e7 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /home/harmony/OpenHarmony/third_party/test_executable/math + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "TRUE") +endif() + diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/hello b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/hello new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/hello @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/libMathFunctions.a b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/libMathFunctions.a new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/math/libMathFunctions.a @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/ohos.toolchain.cmake b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/ohos.toolchain.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1d29e94460c92efe99deb1c5bbad16db2f71eb9e --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/build_tmp/ohos.toolchain.cmake @@ -0,0 +1,30 @@ +set(CMAKE_CROSSCOMPILING TRUE) +set(CMAKE_SYSTEM_NAME Linux) +set(CMAKE_CXX_COMPILER_ID Clang) +SET (CMAKE_SYSTEM_PROCESSOR arm) + +SET ( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET ( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET ( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + +SET ( CROSS_COMPILATION_ARCHITECTURE armv7-a) + +set(CMAKE_TOOLCHAIN_PREFIX llvm-) + +set(PROJECT_ROOT /home/harmony/OpenHarmony) + +#指定c编译工具(确保工具链所在路径已经添加到了PATH环境变量中)和编译标志,使用clang编译时标志中必须指定--target,否则无法交叉编译。 +set(CMAKE_C_COMPILER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang) +set(CMAKE_C_FLAGS "--target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w") +#指定c++编译工具(确保工具链所在路径已经添加到了PATH环境变量中)和编译标志,必须指定--target,否则无法交叉编译。 +set(CMAKE_CXX_COMPILER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++) +set(CMAKE_CXX_FLAGS "--target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w") +#指定链接工具和链接标志,必须指定--target和--sysroot,其中OHOS_ROOT_PATH可通过cmake命令后缀参数来指定。 +set(MY_LINK_FLAGS "--target=arm-linux-ohosmusl --sysroot=${PROJECT_ROOT}//out/rk3568-khdvk/obj/third_party/musl/") +set(CMAKE_LINKER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang) +set(CMAKE_CXX_LINKER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++) +set(CMAKE_C_LINKER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang) + +#指定链接库的查找路径。 +set(CMAKE_SYSROOT ${PROJECT_ROOT}//out/rk3568-khdvk/obj/third_party/musl/) +set(CMAKE_EXE_LINKER_FLAGS "-Wl,--dynamic-linker,/lib/ld-musl-arm.so.1") diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/main.cc b/hdc/gn/test/storytest/test_multiple/test_executable/main.cc new file mode 100644 index 0000000000000000000000000000000000000000..851fbd3ebd4985da6b16895560747cc4ce82e445 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/main.cc @@ -0,0 +1,17 @@ +#include +#include +#include +#include + +int main(int argc, char *argv[]){ + if (argc < 3){ + printf("Usage:%s base exponent \n", argv[0]); + return 1; + } + double base = atof(argv[1]); + int exponent = atoi(argv[2]); + double result = power(base, exponent); + result = result + add(base, exponent); + printf("%g ^ %d is %g\n", base, exponent, result); + return 0; +} \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/math/CMakeLists.txt b/hdc/gn/test/storytest/test_multiple/test_executable/math/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..235cb31b0c737679f0829e7d43209dc89e93b7a3 --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/math/CMakeLists.txt @@ -0,0 +1,8 @@ +#获取路径下所有的.cpp/.c/.cc文件,并赋值到DIR_SRCS变量中 +aux_source_directory(. DIR_LIB_SRCS) + +#生成链接库 +add_library(MathFunctions ${DIR_LIB_SRCS}) + +#生成链接库 +add_executable(hello ${DIR_LIB_SRCS}) \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/math/MathFunctions.cc b/hdc/gn/test/storytest/test_multiple/test_executable/math/MathFunctions.cc new file mode 100644 index 0000000000000000000000000000000000000000..7ce070d6cb909be591705af0cc7d7af106b1598f --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/math/MathFunctions.cc @@ -0,0 +1,16 @@ +#include +#include + +double power(double base, int exponent){ + int result = base; + int i; + + if (exponent == 0){ + return 1; + } + + for (i = 1; i < exponent; ++i){ + result = result * base; + } + return result; +} \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_multiple/test_executable/math/MathFunctions.h b/hdc/gn/test/storytest/test_multiple/test_executable/math/MathFunctions.h new file mode 100644 index 0000000000000000000000000000000000000000..cb827f2433e49e1f3b34d36d6640c8e155f56a2a --- /dev/null +++ b/hdc/gn/test/storytest/test_multiple/test_executable/math/MathFunctions.h @@ -0,0 +1,4 @@ +#include +#include + +double power(double base, int exponent); \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test.js b/hdc/gn/test/storytest/test_single/test.js new file mode 100644 index 0000000000000000000000000000000000000000..8248c0c255ef57ef38ae3547ff27056e75e6d52a --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test.js @@ -0,0 +1,93 @@ +/* +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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. +*/ +var assert = require("assert"); + +describe('single source file', function () { + var fs = require("fs"); + let data = fs.readFileSync('test_project/build_tmp/BUILD.gn', + { encoding: "utf8" }); + let import_content = data.substring(0, data.indexOf('config') - 2); + let ohos_static = data.substring(data.indexOf('config'), + data.indexOf('test_subsystem') + 17); + let qiepian1 = data.substring(data.indexOf('test_subsystem') + 18, + data.length - 1); + let ohos_executable = qiepian1.substring(qiepian1.indexOf('config'), + qiepian1.indexOf('test_subsystem') + 17); + let qiepian2 = qiepian1.substring(qiepian1.indexOf('test_subsystem') + 17, + qiepian1.length - 1); + let ohos_shard = qiepian2.substring(qiepian2.indexOf('config'), + qiepian2.indexOf('test_subsystem') + 17); + let all_targets = data.substring(data.lastIndexOf('group'), + data.length - 1); + + it('Whether BUILD.gn exists', function () { + var flag = fs.existsSync('test_project/build_tmp/BUILD.gn'); + assert.deepStrictEqual(flag, true); + }); + + it('Whether import exists', function () { + assert.deepStrictEqual(import_content, "import(\"//build/ohos.gni\")"); + }); + + it('Whether static exists', function () { + flag = ohos_static.includes("ohos_static_library(\"test_static\")"); + assert.strictEqual(flag, true); + let linshi = ohos_static.replace(/\s*/g, ""); + flag = linshi.includes("sources=[\"//third_party/test_project/main.c\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); + + it('Whether executable exists', function () { + flag = ohos_executable.includes("ohos_executable(\"hello\")"); + assert.strictEqual(flag, true); + let linshi = ohos_executable.replace(/\s*/g, ""); + flag = linshi.includes("sources=[\"//third_party/test_project/main.c\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); + + it('Whether shard exists', function () { + flag = ohos_shard.includes("ohos_shared_library(\"test_shared\""); + assert.strictEqual(flag, true); + let linshi = ohos_shard.replace(/\s*/g, ""); + flag = linshi.includes("sources=[\"//third_party/test_project/main.c\"]"); + assert.strictEqual(flag, true); + flag = linshi.includes("part_name=\"test_part\""); + assert.strictEqual(flag, true); + flag = linshi.includes("subsystem_name=\"test_subsystem\""); + assert.strictEqual(flag, true); + }); + + it('Whether group exists', function () { + let linshi = all_targets.replace(/\s*/g, ""); + flag = linshi.includes('group("all_targets")'); + assert.strictEqual(flag, true); + flag = linshi.includes("#静态库\"//third_party/test_project/build_tmp:test_static\""); + assert.strictEqual(flag, true); + flag = linshi.includes("#动态库\"//third_party/test_project/build_tmp:test_shared\""); + assert.strictEqual(flag, true); + flag = linshi.includes("#可执行程序\"//third_party/test_project/build_tmp:hello\""); + assert.strictEqual(flag, true); + }); + +}); + diff --git a/hdc/gn/test/storytest/test_single/test_project/CMakeLists.txt b/hdc/gn/test/storytest/test_single/test_project/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..3a371ba34ec77f26bb85604aae97f35310097b49 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/CMakeLists.txt @@ -0,0 +1,6 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(hello) + +AUX_SOURCE_DIRECTORY(. SRC_LIST) + +ADD_EXECUTABLE(hello ${SRC_LIST}) \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/BUILD.gn b/hdc/gn/test/storytest/test_single/test_project/build_tmp/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..3503742772ec5cf238255ab5a8cebb9e5603a825 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/BUILD.gn @@ -0,0 +1,140 @@ +import("//build/ohos.gni") + +config("test_static_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4" + ] +} + +ohos_static_library("test_static") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":test_static_config" ] + + sources = [ + "//third_party/test_project/main.c" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "__clang__" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + +config("hello_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4" + ] +} + +ohos_executable("hello") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":hello_config" ] + + sources = [ + "//third_party/test_project/main.c" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "__clang__" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + +config("test_shared_config") { + cflags = [ + "-Wno-implicit-function-declaration", + "-Wno-unused-function", + "-Wno-comments", + "-Wno-string-conversion", + "-Wno-header-hygiene", + "-frtti", + "-fexceptions", + "--target=arm-linux-ohosmusl", + "-march=armv7-a", + "-mfloat-abi=softfp", + "-mfpu=neon-vfpv4" + ] +} + +ohos_shared_library("test_shared") +{ +remove_configs = [ + "//build/config/compiler:no_rtti", + "//build/config/compiler:no_exceptions", + ] +configs = [ ":test_shared_config" ] + + sources = [ + "//third_party/test_project/main.c" + ] + + defines = [ + "_XOPEN_SOURCE=600", + "FE_TONEAREST=0x00000000", + "FE_UPWARD=0x00400000", + "FE_DOWNWARD=0x00800000", + "FE_TOWARDZERO=0x00c00000", + "test_shared_EXPORTS", + "__clang__" + ] + +part_name = "test_part" +subsystem_name = "test_subsystem" +} + + +group("all_targets") { + deps = [ + #静态库 + "//third_party/test_project/build_tmp:test_static", + + #动态库 + "//third_party/test_project/build_tmp:test_shared", + + #可执行程序 + "//third_party/test_project/build_tmp:hello", + + ] +} diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeCache.txt b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeCache.txt new file mode 100644 index 0000000000000000000000000000000000000000..7fd069347df35dee9a89574424c7e3afde3c8af7 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeCache.txt @@ -0,0 +1,350 @@ +# This is the CMakeCache file. +# For build in directory: /home/harmony/OpenHarmony/third_party/test_project/build_tmp +# It was generated by CMake: /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line + +//Path to a program. +CMAKE_AR:FILEPATH=/usr/bin/ar + +//Choose the type of build, options are: None Debug Release RelWithDebInfo +// MinSizeRel ... +CMAKE_BUILD_TYPE:STRING= + +//Enable/Disable color output during build. +CMAKE_COLOR_MAKEFILE:BOOL=ON + +//LLVM archiver +CMAKE_CXX_COMPILER_AR:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar + +//Generate index for LLVM archive +CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib + +//Flags used by the CXX compiler during all build types. +CMAKE_CXX_FLAGS:STRING= + +//Flags used by the CXX compiler during DEBUG builds. +CMAKE_CXX_FLAGS_DEBUG:STRING=-g + +//Flags used by the CXX compiler during MINSIZEREL builds. +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the CXX compiler during RELEASE builds. +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the CXX compiler during RELWITHDEBINFO builds. +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//LLVM archiver +CMAKE_C_COMPILER_AR:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar + +//Generate index for LLVM archive +CMAKE_C_COMPILER_RANLIB:FILEPATH=/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib + +//Flags used by the C compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the C compiler during DEBUG builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the C compiler during MINSIZEREL builds. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the C compiler during RELEASE builds. +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the C compiler during RELWITHDEBINFO builds. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Path to a program. +CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND + +//Flags used by the linker during all build types. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during DEBUG builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during MINSIZEREL builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during RELEASE builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during RELWITHDEBINFO builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//No help, variable specified on the command line. +CMAKE_MAKE_PROGRAM:UNINITIALIZED=/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw + +//Flags used by the linker during the creation of modules during +// all build types. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of modules during +// DEBUG builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of modules during +// MINSIZEREL builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of modules during +// RELEASE builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of modules during +// RELWITHDEBINFO builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump + +//Value Computed by CMake +CMAKE_PROJECT_DESCRIPTION:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_HOMEPAGE_URL:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=hello + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib + +//Path to a program. +CMAKE_READELF:FILEPATH=/usr/bin/readelf + +//Flags used by the linker during the creation of shared libraries +// during all build types. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of shared libraries +// during DEBUG builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of shared libraries +// during MINSIZEREL builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELEASE builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELWITHDEBINFO builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries +// during all build types. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of static libraries +// during DEBUG builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of static libraries +// during MINSIZEREL builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELEASE builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELWITHDEBINFO builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/usr/bin/strip + +//The CMake toolchain file +CMAKE_TOOLCHAIN_FILE:FILEPATH=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/ohos.toolchain.cmake + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Value Computed by CMake +hello_BINARY_DIR:STATIC=/home/harmony/OpenHarmony/third_party/test_project/build_tmp + +//Value Computed by CMake +hello_SOURCE_DIR:STATIC=/home/harmony/OpenHarmony/third_party/test_project + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_ADDR2LINE +CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/home/harmony/OpenHarmony/third_party/test_project/build_tmp +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=16 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=5 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/ctest +//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR +CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB +CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_AR +CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB +CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_DLLTOOL +CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 +//Path to cache edit program executable. +CMAKE_EDIT_COMMAND:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/ccmake +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Unix Makefiles +//Generator instance identifier. +CMAKE_GENERATOR_INSTANCE:INTERNAL= +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/home/harmony/OpenHarmony/third_party/test_project +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_READELF +CMAKE_READELF-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/usr/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeCCompiler.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeCCompiler.cmake new file mode 100644 index 0000000000000000000000000000000000000000..50e14e7f5e5eda6834b2217913aa714b76cde732 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeCCompiler.cmake @@ -0,0 +1,76 @@ +set(CMAKE_C_COMPILER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "Clang") +set(CMAKE_C_COMPILER_VERSION "10.0.1") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") + +set(CMAKE_C_PLATFORM_ID "Linux") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU") +set(CMAKE_C_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_C_COMPILER_AR "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_C_COMPILER_RANLIB "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib") +set(CMAKE_LINKER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCC ) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "4") +set(CMAKE_C_COMPILER_ABI "ELF") +set(CMAKE_C_LIBRARY_ARCHITECTURE "") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include") +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeCXXCompiler.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeCXXCompiler.cmake new file mode 100644 index 0000000000000000000000000000000000000000..b0770a2035bd6162c13617396d32854b95995397 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeCXXCompiler.cmake @@ -0,0 +1,88 @@ +set(CMAKE_CXX_COMPILER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++") +set(CMAKE_CXX_COMPILER_ARG1 "") +set(CMAKE_CXX_COMPILER_ID "Clang") +set(CMAKE_CXX_COMPILER_VERSION "10.0.1") +set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") +set(CMAKE_CXX_COMPILER_WRAPPER "") +set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") +set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20") +set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") +set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") +set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") +set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") +set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20") + +set(CMAKE_CXX_PLATFORM_ID "Linux") +set(CMAKE_CXX_SIMULATE_ID "") +set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU") +set(CMAKE_CXX_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_CXX_COMPILER_AR "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_CXX_COMPILER_RANLIB "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-ranlib") +set(CMAKE_LINKER "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCXX ) +set(CMAKE_CXX_COMPILER_LOADED 1) +set(CMAKE_CXX_COMPILER_WORKS TRUE) +set(CMAKE_CXX_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_CXX_COMPILER_ID_RUN 1) +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP) +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) + +foreach (lang C OBJC OBJCXX) + if (CMAKE_${lang}_COMPILER_ID_RUN) + foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS) + list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension}) + endforeach() + endif() +endforeach() + +set(CMAKE_CXX_LINKER_PREFERENCE 30) +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) + +# Save compiler ABI information. +set(CMAKE_CXX_SIZEOF_DATA_PTR "4") +set(CMAKE_CXX_COMPILER_ABI "ELF") +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "") + +if(CMAKE_CXX_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_CXX_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") +endif() + +if(CMAKE_CXX_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/include/c++/v1;/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include") +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "") +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "") +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin new file mode 100644 index 0000000000000000000000000000000000000000..15c9fc98319d9f50634ef4e38eaf0749e3525f9d Binary files /dev/null and b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin differ diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin new file mode 100644 index 0000000000000000000000000000000000000000..6d913716c47fe3836248de8e44b64d645d752696 Binary files /dev/null and b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin differ diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeSystem.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeSystem.cmake new file mode 100644 index 0000000000000000000000000000000000000000..8384d2156193ecc04b3e034dc7c1a0eb85a46175 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-5.15.0-52-generic") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "5.15.0-52-generic") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + +include("/home/harmony/OpenHarmony/third_party/test_project/build_tmp/ohos.toolchain.cmake") + +set(CMAKE_SYSTEM "Linux") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(CMAKE_CROSSCOMPILING "TRUE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.c b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 0000000000000000000000000000000000000000..d884b50908c9852aad6d3b60781f4e529edc4d50 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,671 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 +# define COMPILER_ID "XL" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) +# define COMPILER_ID "SDCC" +# if defined(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) +# else + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if !defined(__STDC__) +# if (defined(_MSC_VER) && !defined(__clang__)) \ + || (defined(__ibmxl__) || defined(__IBMC__)) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o new file mode 100644 index 0000000000000000000000000000000000000000..29cca69f2273144af0f4d527f4fc4950810ecf73 Binary files /dev/null and b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o differ diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.cpp b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.cpp new file mode 100644 index 0000000000000000000000000000000000000000..69cfdba6bc7bccb09bf234388908de035caa0969 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.cpp @@ -0,0 +1,660 @@ +/* This source file must have a .cpp extension so that all C++ compilers + recognize the extension without flags. Borland does not know .cxx for + example. */ +#ifndef __cplusplus +# error "A C compiler has been selected for C++." +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__COMO__) +# define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) + +#elif defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_CC) +# define COMPILER_ID "SunPro" +# if __SUNPRO_CC >= 0x5100 + /* __SUNPRO_CC = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# endif + +#elif defined(__HP_aCC) +# define COMPILER_ID "HP" + /* __HP_aCC = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) + +#elif defined(__DECCXX) +# define COMPILER_ID "Compaq" + /* __DECCXX_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) + +#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 +# define COMPILER_ID "XL" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) || defined(__GNUG__) +# define COMPILER_ID "GNU" +# if defined(__GNUC__) +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# else +# define COMPILER_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L +# if defined(__INTEL_CXX11_MODE__) +# if defined(__cpp_aggregate_nsdmi) +# define CXX_STD 201402L +# else +# define CXX_STD 201103L +# endif +# else +# define CXX_STD 199711L +# endif +#elif defined(_MSC_VER) && defined(_MSVC_LANG) +# define CXX_STD _MSVC_LANG +#else +# define CXX_STD __cplusplus +#endif + +const char* info_language_dialect_default = "INFO" ":" "dialect_default[" +#if CXX_STD > 201703L + "20" +#elif CXX_STD >= 201703L + "17" +#elif CXX_STD >= 201402L + "14" +#elif CXX_STD >= 201103L + "11" +#else + "98" +#endif +"]"; + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o new file mode 100644 index 0000000000000000000000000000000000000000..693aeb8771de8ab36c33e43fb400be9fd271372f Binary files /dev/null and b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o differ diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeDirectoryInformation.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000000000000000000000000000000000000..9cc09d0860fd1037981c6f338d7425d71003128d --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/harmony/OpenHarmony/third_party/test_project") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/harmony/OpenHarmony/third_party/test_project/build_tmp") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeError.log b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeError.log new file mode 100644 index 0000000000000000000000000000000000000000..f02bcb34a5dafb1dab419e9fba1f8214df46cc11 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeError.log @@ -0,0 +1,29 @@ +Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: + +The output was: +1 +ld.lld: error: cannot open Scrt1.o: No such file or directory +ld.lld: error: cannot open crti.o: No such file or directory +ld.lld: error: unable to find library -lc +ld.lld: error: cannot open crtn.o: No such file or directory +clang-10: error: linker command failed with exit code 1 (use -v to see invocation) + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: + +The output was: +1 +ld.lld: error: cannot open Scrt1.o: No such file or directory +ld.lld: error: cannot open crti.o: No such file or directory +ld.lld: error: unable to find library -lm +ld.lld: error: unable to find library -lc +ld.lld: error: cannot open crtn.o: No such file or directory +clang-10: error: linker command failed with exit code 1 (use -v to see invocation) + + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeOutput.log b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeOutput.log new file mode 100644 index 0000000000000000000000000000000000000000..8d973582c22b946e6eca6ab22fd127bdb11bbcf4 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/CMakeOutput.log @@ -0,0 +1,203 @@ +The target system is: Linux - - arm +The host system is: Linux - 5.15.0-52-generic - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: -c + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o" + +The C compiler identification is Clang, found in "/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdC/CMakeCCompilerId.o" + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. +Compiler: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ +Build flags: --target=arm-linux-ohosmusl;-D__clang__;-march=armv7-a;;-mfloat-abi=softfp;-mfpu=neon-vfpv4;-w +Id flags: -c + +The output was: +0 + + +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o" + +The CXX compiler identification is Clang, found in "/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/3.16.5/CompilerIdCXX/CMakeCXXCompilerId.o" + +Determining if the C compiler works passed with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_f0308/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_f0308.dir/build.make CMakeFiles/cmTC_f0308.dir/build +make_raw[1]: 进入目录“/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp” +Building C object CMakeFiles/cmTC_f0308.dir/testCCompiler.c.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -o CMakeFiles/cmTC_f0308.dir/testCCompiler.c.o -c /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C executable cmTC_f0308 +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f0308.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -rdynamic CMakeFiles/cmTC_f0308.dir/testCCompiler.c.o -o cmTC_f0308 +make_raw[1]: 离开目录“/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp” + + + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_77c39/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_77c39.dir/build.make CMakeFiles/cmTC_77c39.dir/build +make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + (in-process) + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang-10" -cc1 -triple armv7-unknown-linux-ohosmusl -emit-obj -mrelax-all -mnoexecstack -disable-free -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature +soft-float-abi -target-feature +vfp2 -target-feature +vfp2sp -target-feature +vfp3 -target-feature +vfp3d16 -target-feature +vfp3d16sp -target-feature +vfp3sp -target-feature +fp16 -target-feature +vfp4 -target-feature +vfp4d16 -target-feature +vfp4d16sp -target-feature +vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature +fp64 -target-feature +d32 -target-feature +neon -target-feature -crypto -target-feature -fp16fml -target-abi aapcs-linux -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1 -D __clang__ -isysroot /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -internal-isystem /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include -w -fdebug-compilation-dir /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -fno-signed-char -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -o CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o -x c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c +clang -cc1 version 10.0.1 based upon LLVM 10.0.1 default target x86_64-unknown-linux-gnu +ignoring nonexistent directory "/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include" +#include "..." search starts here: +#include <...> search starts here: + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include +End of search list. +Linking C executable cmTC_77c39 +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_77c39.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -v -rdynamic CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o -o cmTC_77c39 +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/ld.lld" --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -pie -z noexecstack -export-dynamic -EL --warn-shared-textrel -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m armelf_linux_eabi -export-dynamic -dynamic-linker /lib/ld-musl-arm.so.1 -o cmTC_77c39 /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/Scrt1.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crti.o /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtbegin.o -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/ -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../lib/arm-linux-ohos/ -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/ --dynamic-linker /lib/ld-musl-arm.so.1 CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtend.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crtn.o +make_raw[1]: Leaving directory '/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp' + + + +Parsed C implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] + end of search list found + collapse include dir [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] ==> [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + implicit include dirs: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(clang|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_77c39/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_77c39.dir/build.make CMakeFiles/cmTC_77c39.dir/build] + ignore line: [make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp'] + ignore line: [Building C object CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o] + link line: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c] + arg [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang] ==> ignore + arg [--sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/] ==> ignore + arg [--target=arm-linux-ohosmusl] ==> ignore + arg [-D__clang__] ==> ignore + arg [-march=armv7-a] ==> ignore + arg [-mfloat-abi=softfp] ==> ignore + arg [-mfpu=neon-vfpv4] ==> ignore + arg [-w] ==> ignore + arg [-v] ==> ignore + arg [-o] ==> ignore + arg [CMakeFiles/cmTC_77c39.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-c] ==> ignore + arg [/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c] ==> ignore + implicit libs: [] + implicit dirs: [] + implicit fwks: [] + + +Determining if the CXX compiler works passed with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_68150/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_68150.dir/build.make CMakeFiles/cmTC_68150.dir/build +make_raw[1]: 进入目录“/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp” +Building CXX object CMakeFiles/cmTC_68150.dir/testCXXCompiler.cxx.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -o CMakeFiles/cmTC_68150.dir/testCXXCompiler.cxx.o -c /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp/testCXXCompiler.cxx +Linking CXX executable cmTC_68150 +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_68150.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -rdynamic CMakeFiles/cmTC_68150.dir/testCXXCompiler.cxx.o -o cmTC_68150 +make_raw[1]: 离开目录“/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp” + + + +Detecting CXX compiler ABI info compiled with the following output: +Change Dir: /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp + +Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_f6959/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_f6959.dir/build.make CMakeFiles/cmTC_f6959.dir/build +make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + (in-process) + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang-10" -cc1 -triple armv7-unknown-linux-ohosmusl -emit-obj -mrelax-all -mnoexecstack -disable-free -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature +soft-float-abi -target-feature +vfp2 -target-feature +vfp2sp -target-feature +vfp3 -target-feature +vfp3d16 -target-feature +vfp3d16sp -target-feature +vfp3sp -target-feature +fp16 -target-feature +vfp4 -target-feature +vfp4d16 -target-feature +vfp4d16sp -target-feature +vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature +fp64 -target-feature +d32 -target-feature +neon -target-feature -crypto -target-feature -fp16fml -target-abi aapcs-linux -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1 -D __clang__ -isysroot /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -internal-isystem /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1 -internal-isystem /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include -internal-externc-isystem /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include -w -fdeprecated-macro -fdebug-compilation-dir /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -fno-signed-char -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o -x c++ /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp +clang -cc1 version 10.0.1 based upon LLVM 10.0.1 default target x86_64-unknown-linux-gnu +ignoring nonexistent directory "/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//include" +#include "..." search starts here: +#include <...> search starts here: + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1 + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos + /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include +End of search list. +Linking CXX executable cmTC_f6959 +/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f6959.dir/link.txt --verbose=1 +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -v -rdynamic CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_f6959 +OHOS () clang version 10.0.1.480513 (llvm-project b2cadc87d64786377748bdb6bc5e6949492f01ab) +Target: arm-unknown-linux-ohosmusl +Thread model: posix +InstalledDir: /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin + "/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/ld.lld" --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -pie -z noexecstack -export-dynamic -EL --warn-shared-textrel -z now -z relro -z max-page-size=4096 --hash-style=gnu --hash-style=both --enable-new-dtags --eh-frame-hdr -m armelf_linux_eabi -export-dynamic -dynamic-linker /lib/ld-musl-arm.so.1 -o cmTC_f6959 /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/Scrt1.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crti.o /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtbegin.o -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../lib/arm-linux-ohos/c++/ -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/ -L/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../lib/arm-linux-ohos/ -L/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/ --dynamic-linker /lib/ld-musl-arm.so.1 CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lc++abi -lunwind -lm /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a -lc /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/libclang_rt.builtins.a -l:libunwind.a /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohos/clang_rt.crtend.o /home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/usr/lib/arm-linux-ohos/crtn.o +make_raw[1]: Leaving directory '/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp' + + + +Parsed CXX implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1] + add: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] + add: [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] + end of search list found + collapse include dir [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/../include/c++/v1] ==> [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/include/c++/v1] + collapse include dir [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] ==> [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include/arm-linux-ohos] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos] + collapse include dir [/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl//usr/include] ==> [/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + implicit include dirs: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/include/c++/v1;/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/include;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include/arm-linux-ohos;/home/harmony/OpenHarmony/out/rk3568-khdvk/obj/third_party/musl/usr/include] + + +Parsed CXX implicit link information from above output: + link line regex: [^( *|.*[/\])(clang|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw cmTC_f6959/fast && /home/harmony/linshi/napi_generator_8/hdc/gn-gen/res/linux/bin/make_raw -f CMakeFiles/cmTC_f6959.dir/build.make CMakeFiles/cmTC_f6959.dir/build] + ignore line: [make_raw[1]: Entering directory '/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/CMakeTmp'] + ignore line: [Building CXX object CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o] + link line: [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -v -o CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o -c /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp] + arg [/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++] ==> ignore + arg [--sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/] ==> ignore + arg [--target=arm-linux-ohosmusl] ==> ignore + arg [-D__clang__] ==> ignore + arg [-march=armv7-a] ==> ignore + arg [-mfloat-abi=softfp] ==> ignore + arg [-mfpu=neon-vfpv4] ==> ignore + arg [-w] ==> ignore + arg [-v] ==> ignore + arg [-o] ==> ignore + arg [CMakeFiles/cmTC_f6959.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [-c] ==> ignore + arg [/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp] ==> ignore + implicit libs: [] + implicit dirs: [] + implicit fwks: [] + + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/Makefile.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/Makefile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..2ef091585951c653fcb6624affcaaa713da72da1 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/Makefile.cmake @@ -0,0 +1,125 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# The generator used is: +set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") + +# The top level Makefile was generated from the following files: +set(CMAKE_MAKEFILE_DEPENDS + "CMakeCache.txt" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompiler.cmake.in" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCCompilerABI.c" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompiler.cmake.in" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCXXInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeCompilerIdDetection.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCXXCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompileFeatures.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompilerABI.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineCompilerId.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeFindBinUtils.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeGenericSystem.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeParseImplicitIncludeInfo.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeParseImplicitLinkInfo.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeSystem.cmake.in" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/ADSP-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/ARMCC-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/ARMClang-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/AppleClang-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Borland-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-C.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang-FindBinUtils.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Clang.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Cray-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GHS-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GNU-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/GNU.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/HP-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/HP-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/IAR-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Intel-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/MSVC-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/PGI-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/PathScale-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SCO-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/TI-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/Watcom-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XL-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XL-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XLClang-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/zOS-C-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Internal/FeatureTesting.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-Clang-C.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-Clang-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-Determine-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-GNU-C.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-GNU-CXX.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux-GNU.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/Linux.cmake" + "/home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/share/cmake-3.16/Modules/Platform/UnixPaths.cmake" + "../CMakeLists.txt" + "CMakeFiles/3.16.5/CMakeCCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" + "CMakeFiles/3.16.5/CMakeSystem.cmake" + "ohos.toolchain.cmake" + ) + +# The corresponding makefile is: +set(CMAKE_MAKEFILE_OUTPUTS + "Makefile" + "CMakeFiles/cmake.check_cache" + ) + +# Byproducts of CMake generate step: +set(CMAKE_MAKEFILE_PRODUCTS + "CMakeFiles/3.16.5/CMakeSystem.cmake" + "CMakeFiles/3.16.5/CMakeCCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCCompiler.cmake" + "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" + "CMakeFiles/CMakeDirectoryInformation.cmake" + ) + +# Dependency information for all targets: +set(CMAKE_DEPEND_INFO_FILES + "CMakeFiles/test_static.dir/DependInfo.cmake" + "CMakeFiles/hello.dir/DependInfo.cmake" + "CMakeFiles/test_shared.dir/DependInfo.cmake" + ) diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/Makefile2 b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/Makefile2 new file mode 100644 index 0000000000000000000000000000000000000000..21d76b715817fc4193045f061243911f1b46ff58 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/Makefile2 @@ -0,0 +1,164 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_project + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_project/build_tmp + +#============================================================================= +# Directory level rules for the build root directory + +# The main recursive "all" target. +all: CMakeFiles/test_static.dir/all +all: CMakeFiles/hello.dir/all +all: CMakeFiles/test_shared.dir/all + +.PHONY : all + +# The main recursive "preinstall" target. +preinstall: + +.PHONY : preinstall + +# The main recursive "clean" target. +clean: CMakeFiles/test_static.dir/clean +clean: CMakeFiles/hello.dir/clean +clean: CMakeFiles/test_shared.dir/clean + +.PHONY : clean + +#============================================================================= +# Target rules for target CMakeFiles/test_static.dir + +# All Build rule for target. +CMakeFiles/test_static.dir/all: + $(MAKE) -f CMakeFiles/test_static.dir/build.make CMakeFiles/test_static.dir/depend + $(MAKE) -f CMakeFiles/test_static.dir/build.make CMakeFiles/test_static.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=5,6 "Built target test_static" +.PHONY : CMakeFiles/test_static.dir/all + +# Build rule for subdir invocation for target. +CMakeFiles/test_static.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles 2 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/test_static.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles 0 +.PHONY : CMakeFiles/test_static.dir/rule + +# Convenience name for target. +test_static: CMakeFiles/test_static.dir/rule + +.PHONY : test_static + +# clean rule for target. +CMakeFiles/test_static.dir/clean: + $(MAKE) -f CMakeFiles/test_static.dir/build.make CMakeFiles/test_static.dir/clean +.PHONY : CMakeFiles/test_static.dir/clean + +#============================================================================= +# Target rules for target CMakeFiles/hello.dir + +# All Build rule for target. +CMakeFiles/hello.dir/all: + $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/depend + $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=1,2 "Built target hello" +.PHONY : CMakeFiles/hello.dir/all + +# Build rule for subdir invocation for target. +CMakeFiles/hello.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles 2 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/hello.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles 0 +.PHONY : CMakeFiles/hello.dir/rule + +# Convenience name for target. +hello: CMakeFiles/hello.dir/rule + +.PHONY : hello + +# clean rule for target. +CMakeFiles/hello.dir/clean: + $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/clean +.PHONY : CMakeFiles/hello.dir/clean + +#============================================================================= +# Target rules for target CMakeFiles/test_shared.dir + +# All Build rule for target. +CMakeFiles/test_shared.dir/all: + $(MAKE) -f CMakeFiles/test_shared.dir/build.make CMakeFiles/test_shared.dir/depend + $(MAKE) -f CMakeFiles/test_shared.dir/build.make CMakeFiles/test_shared.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=3,4 "Built target test_shared" +.PHONY : CMakeFiles/test_shared.dir/all + +# Build rule for subdir invocation for target. +CMakeFiles/test_shared.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles 2 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/test_shared.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles 0 +.PHONY : CMakeFiles/test_shared.dir/rule + +# Convenience name for target. +test_shared: CMakeFiles/test_shared.dir/rule + +.PHONY : test_shared + +# clean rule for target. +CMakeFiles/test_shared.dir/clean: + $(MAKE) -f CMakeFiles/test_shared.dir/build.make CMakeFiles/test_shared.dir/clean +.PHONY : CMakeFiles/test_shared.dir/clean + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/TargetDirectories.txt b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/TargetDirectories.txt new file mode 100644 index 0000000000000000000000000000000000000000..3156c1c6d7015478cab34ba271e2f4a07fce4fb3 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,5 @@ +/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/rebuild_cache.dir +/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/test_static.dir +/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/hello.dir +/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/test_shared.dir +/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/edit_cache.dir diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/cmake.check_cache b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/cmake.check_cache new file mode 100644 index 0000000000000000000000000000000000000000..3dccd731726d7faa8b29d8d7dba3b981a53ca497 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..e4e20b4df11cbabd37249853fabde163ea6754c2 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/DependInfo.cmake @@ -0,0 +1,20 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "C" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_C + "/home/harmony/OpenHarmony/third_party/test_project/main.c" "/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/hello.dir/main.c.o" + ) +set(CMAKE_C_COMPILER_ID "Clang") + +# The include file search paths: +set(CMAKE_C_TARGET_INCLUDE_PATH + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/build.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..f39de52c0e05c00d8f8f67e7a23c69426d203059 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/build.make @@ -0,0 +1,98 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_project + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_project/build_tmp + +# Include any dependencies generated for this target. +include CMakeFiles/hello.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/hello.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/hello.dir/flags.make + +CMakeFiles/hello.dir/main.c.o: CMakeFiles/hello.dir/flags.make +CMakeFiles/hello.dir/main.c.o: ../main.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/hello.dir/main.c.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/hello.dir/main.c.o -c /home/harmony/OpenHarmony/third_party/test_project/main.c + +CMakeFiles/hello.dir/main.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/hello.dir/main.c.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_project/main.c > CMakeFiles/hello.dir/main.c.i + +CMakeFiles/hello.dir/main.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/hello.dir/main.c.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_project/main.c -o CMakeFiles/hello.dir/main.c.s + +# Object files for target hello +hello_OBJECTS = \ +"CMakeFiles/hello.dir/main.c.o" + +# External object files for target hello +hello_EXTERNAL_OBJECTS = + +hello: CMakeFiles/hello.dir/main.c.o +hello: CMakeFiles/hello.dir/build.make +hello: CMakeFiles/hello.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking C executable hello" + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/hello.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/hello.dir/build: hello + +.PHONY : CMakeFiles/hello.dir/build + +CMakeFiles/hello.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/hello.dir/cmake_clean.cmake +.PHONY : CMakeFiles/hello.dir/clean + +CMakeFiles/hello.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_project/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_project /home/harmony/OpenHarmony/third_party/test_project /home/harmony/OpenHarmony/third_party/test_project/build_tmp /home/harmony/OpenHarmony/third_party/test_project/build_tmp /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/hello.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/hello.dir/depend + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..ff14221518e23d60c6960a7f683e3c960f2bf7c5 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/hello.dir/main.c.o" + "hello" + "hello.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang C) + include(CMakeFiles/hello.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/depend.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..ebdf3a5cf84d1bc90d91f5d9f3773dada9d7d16b --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for hello. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/flags.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..6a06e753322a019736f11ed992bac0eac404c7cd --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile C with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang +C_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w + +C_DEFINES = + +C_INCLUDES = + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/link.txt b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..c9af4d2de7a2aa4af2b177b6275ac462f969bf00 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/link.txt @@ -0,0 +1 @@ +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -Wl,--dynamic-linker,/lib/ld-musl-arm.so.1 -rdynamic CMakeFiles/hello.dir/main.c.o -o hello diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/main.c.o b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/main.c.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/main.c.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/progress.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..abadeb0c3abaa81d622026fcd3ae096d03dd29b7 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/hello.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 1 +CMAKE_PROGRESS_2 = 2 + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/progress.marks b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/progress.marks new file mode 100644 index 0000000000000000000000000000000000000000..1e8b314962144c26d5e0e50fd29d2ca327864913 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/progress.marks @@ -0,0 +1 @@ +6 diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..fe6c6427ce62321efc00663748089d818b7974d6 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/DependInfo.cmake @@ -0,0 +1,25 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "C" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_C + "/home/harmony/OpenHarmony/third_party/test_project/main.c" "/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/test_shared.dir/main.c.o" + ) +set(CMAKE_C_COMPILER_ID "Clang") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_C + "test_shared_EXPORTS" + ) + +# The include file search paths: +set(CMAKE_C_TARGET_INCLUDE_PATH + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/build.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..076c5ca3514083da639757c97124faf4c590554f --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/build.make @@ -0,0 +1,98 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_project + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_project/build_tmp + +# Include any dependencies generated for this target. +include CMakeFiles/test_shared.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/test_shared.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/test_shared.dir/flags.make + +CMakeFiles/test_shared.dir/main.c.o: CMakeFiles/test_shared.dir/flags.make +CMakeFiles/test_shared.dir/main.c.o: ../main.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/test_shared.dir/main.c.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/test_shared.dir/main.c.o -c /home/harmony/OpenHarmony/third_party/test_project/main.c + +CMakeFiles/test_shared.dir/main.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/test_shared.dir/main.c.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_project/main.c > CMakeFiles/test_shared.dir/main.c.i + +CMakeFiles/test_shared.dir/main.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/test_shared.dir/main.c.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_project/main.c -o CMakeFiles/test_shared.dir/main.c.s + +# Object files for target test_shared +test_shared_OBJECTS = \ +"CMakeFiles/test_shared.dir/main.c.o" + +# External object files for target test_shared +test_shared_EXTERNAL_OBJECTS = + +libtest_shared.so: CMakeFiles/test_shared.dir/main.c.o +libtest_shared.so: CMakeFiles/test_shared.dir/build.make +libtest_shared.so: CMakeFiles/test_shared.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking C shared library libtest_shared.so" + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/test_shared.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/test_shared.dir/build: libtest_shared.so + +.PHONY : CMakeFiles/test_shared.dir/build + +CMakeFiles/test_shared.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/test_shared.dir/cmake_clean.cmake +.PHONY : CMakeFiles/test_shared.dir/clean + +CMakeFiles/test_shared.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_project/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_project /home/harmony/OpenHarmony/third_party/test_project /home/harmony/OpenHarmony/third_party/test_project/build_tmp /home/harmony/OpenHarmony/third_party/test_project/build_tmp /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/test_shared.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/test_shared.dir/depend + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..2c877cd384b41326e7b65c7c2f835d254c9cbf46 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/test_shared.dir/main.c.o" + "libtest_shared.pdb" + "libtest_shared.so" +) + +# Per-language clean rules from dependency scanning. +foreach(lang C) + include(CMakeFiles/test_shared.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/depend.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..6734c91b112124d4b636b4755aadbb26e50b1c7b --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for test_shared. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/flags.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..5fc8ba1bb42f210a8a659cdcdf8a6a04dd3ee10e --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile C with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang +C_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -fPIC + +C_DEFINES = -Dtest_shared_EXPORTS + +C_INCLUDES = + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/link.txt b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..72f7335be1030e0577c8874b50d867b9881ed7aa --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/link.txt @@ -0,0 +1 @@ +/home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ -fPIC --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w -shared -Wl,-soname,libtest_shared.so -o libtest_shared.so CMakeFiles/test_shared.dir/main.c.o diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/main.c.o b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/main.c.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/main.c.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/progress.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..8c8fb6fbbc138d8387b9ed9bdb2088ee8aa036f6 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_shared.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 3 +CMAKE_PROGRESS_2 = 4 + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/DependInfo.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/DependInfo.cmake new file mode 100644 index 0000000000000000000000000000000000000000..b200f22601f2213adf0b5b8489879500d8a5836e --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/DependInfo.cmake @@ -0,0 +1,20 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "C" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_C + "/home/harmony/OpenHarmony/third_party/test_project/main.c" "/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/test_static.dir/main.c.o" + ) +set(CMAKE_C_COMPILER_ID "Clang") + +# The include file search paths: +set(CMAKE_C_TARGET_INCLUDE_PATH + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/build.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/build.make new file mode 100644 index 0000000000000000000000000000000000000000..a4e5b28570dd8e33c3211377a91174f77ee90731 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/build.make @@ -0,0 +1,99 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_project + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_project/build_tmp + +# Include any dependencies generated for this target. +include CMakeFiles/test_static.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/test_static.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/test_static.dir/flags.make + +CMakeFiles/test_static.dir/main.c.o: CMakeFiles/test_static.dir/flags.make +CMakeFiles/test_static.dir/main.c.o: ../main.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/test_static.dir/main.c.o" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/test_static.dir/main.c.o -c /home/harmony/OpenHarmony/third_party/test_project/main.c + +CMakeFiles/test_static.dir/main.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/test_static.dir/main.c.i" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /home/harmony/OpenHarmony/third_party/test_project/main.c > CMakeFiles/test_static.dir/main.c.i + +CMakeFiles/test_static.dir/main.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/test_static.dir/main.c.s" + /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --sysroot=/home/harmony/OpenHarmony//out/rk3568-khdvk/obj/third_party/musl/ $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /home/harmony/OpenHarmony/third_party/test_project/main.c -o CMakeFiles/test_static.dir/main.c.s + +# Object files for target test_static +test_static_OBJECTS = \ +"CMakeFiles/test_static.dir/main.c.o" + +# External object files for target test_static +test_static_EXTERNAL_OBJECTS = + +libtest_static.a: CMakeFiles/test_static.dir/main.c.o +libtest_static.a: CMakeFiles/test_static.dir/build.make +libtest_static.a: CMakeFiles/test_static.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking C static library libtest_static.a" + $(CMAKE_COMMAND) -P CMakeFiles/test_static.dir/cmake_clean_target.cmake + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/test_static.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/test_static.dir/build: libtest_static.a + +.PHONY : CMakeFiles/test_static.dir/build + +CMakeFiles/test_static.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/test_static.dir/cmake_clean.cmake +.PHONY : CMakeFiles/test_static.dir/clean + +CMakeFiles/test_static.dir/depend: + cd /home/harmony/OpenHarmony/third_party/test_project/build_tmp && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/harmony/OpenHarmony/third_party/test_project /home/harmony/OpenHarmony/third_party/test_project /home/harmony/OpenHarmony/third_party/test_project/build_tmp /home/harmony/OpenHarmony/third_party/test_project/build_tmp /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/test_static.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/test_static.dir/depend + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/cmake_clean.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/cmake_clean.cmake new file mode 100644 index 0000000000000000000000000000000000000000..41065884e909565462220c4149b85461e86e12db --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/test_static.dir/main.c.o" + "libtest_static.a" + "libtest_static.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang C) + include(CMakeFiles/test_static.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/cmake_clean_target.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/cmake_clean_target.cmake new file mode 100644 index 0000000000000000000000000000000000000000..f9d930f3ffe398e0acebd291d3f2de13dd2e6cb1 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/cmake_clean_target.cmake @@ -0,0 +1,3 @@ +file(REMOVE_RECURSE + "libtest_static.a" +) diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/depend.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/depend.make new file mode 100644 index 0000000000000000000000000000000000000000..8ae1ed7de473bd78e3e762221d915d9c9d8377bb --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for test_static. +# This may be replaced when dependencies are built. diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/flags.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/flags.make new file mode 100644 index 0000000000000000000000000000000000000000..6a06e753322a019736f11ed992bac0eac404c7cd --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile C with /home/harmony/OpenHarmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang +C_FLAGS = --target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w + +C_DEFINES = + +C_INCLUDES = + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/link.txt b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/link.txt new file mode 100644 index 0000000000000000000000000000000000000000..1f7fe4c29f5f07542ff89ee491a504fb23da49b4 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/link.txt @@ -0,0 +1,2 @@ +/usr/bin/ar qc libtest_static.a CMakeFiles/test_static.dir/main.c.o +/usr/bin/ranlib libtest_static.a diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/main.c.o b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/main.c.o new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/main.c.o @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/progress.make b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/progress.make new file mode 100644 index 0000000000000000000000000000000000000000..3a86673aa7c1868ad77aa16c631effd83be0da02 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/CMakeFiles/test_static.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 5 +CMAKE_PROGRESS_2 = 6 + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/Makefile b/hdc/gn/test/storytest/test_single/test_project/build_tmp/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..27423021fdfe31689246445b873eaed5dc693643 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/Makefile @@ -0,0 +1,212 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake + +# The command to remove a file. +RM = /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/harmony/OpenHarmony/third_party/test_project + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/harmony/OpenHarmony/third_party/test_project/build_tmp + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /home/harmony/OpenHarmony/prebuilts/cmake/linux-x86/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /home/harmony/OpenHarmony/third_party/test_project/build_tmp/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named test_static + +# Build rule for target. +test_static: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 test_static +.PHONY : test_static + +# fast build rule for target. +test_static/fast: + $(MAKE) -f CMakeFiles/test_static.dir/build.make CMakeFiles/test_static.dir/build +.PHONY : test_static/fast + +#============================================================================= +# Target rules for targets named hello + +# Build rule for target. +hello: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 hello +.PHONY : hello + +# fast build rule for target. +hello/fast: + $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/build +.PHONY : hello/fast + +#============================================================================= +# Target rules for targets named test_shared + +# Build rule for target. +test_shared: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 test_shared +.PHONY : test_shared + +# fast build rule for target. +test_shared/fast: + $(MAKE) -f CMakeFiles/test_shared.dir/build.make CMakeFiles/test_shared.dir/build +.PHONY : test_shared/fast + +main.o: main.c.o + +.PHONY : main.o + +# target to build an object file +main.c.o: + $(MAKE) -f CMakeFiles/test_static.dir/build.make CMakeFiles/test_static.dir/main.c.o + $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/main.c.o + $(MAKE) -f CMakeFiles/test_shared.dir/build.make CMakeFiles/test_shared.dir/main.c.o +.PHONY : main.c.o + +main.i: main.c.i + +.PHONY : main.i + +# target to preprocess a source file +main.c.i: + $(MAKE) -f CMakeFiles/test_static.dir/build.make CMakeFiles/test_static.dir/main.c.i + $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/main.c.i + $(MAKE) -f CMakeFiles/test_shared.dir/build.make CMakeFiles/test_shared.dir/main.c.i +.PHONY : main.c.i + +main.s: main.c.s + +.PHONY : main.s + +# target to generate assembly for a file +main.c.s: + $(MAKE) -f CMakeFiles/test_static.dir/build.make CMakeFiles/test_static.dir/main.c.s + $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/main.c.s + $(MAKE) -f CMakeFiles/test_shared.dir/build.make CMakeFiles/test_shared.dir/main.c.s +.PHONY : main.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... test_static" + @echo "... hello" + @echo "... test_shared" + @echo "... edit_cache" + @echo "... main.o" + @echo "... main.i" + @echo "... main.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/cmake_install.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/cmake_install.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5facfe3eec62c3114d23d6cebf1ad6a638a90fe8 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/cmake_install.cmake @@ -0,0 +1,49 @@ +# Install script for directory: /home/harmony/OpenHarmony/third_party/test_project + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "TRUE") +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/home/harmony/OpenHarmony/third_party/test_project/build_tmp/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/hello b/hdc/gn/test/storytest/test_single/test_project/build_tmp/hello new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/hello @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/libtest_shared.so b/hdc/gn/test/storytest/test_single/test_project/build_tmp/libtest_shared.so new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/libtest_shared.so @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/libtest_static.a b/hdc/gn/test/storytest/test_single/test_project/build_tmp/libtest_static.a new file mode 100644 index 0000000000000000000000000000000000000000..0519ecba6ea913e21689ec692e81e9e4973fbf73 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/libtest_static.a @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hdc/gn/test/storytest/test_single/test_project/build_tmp/ohos.toolchain.cmake b/hdc/gn/test/storytest/test_single/test_project/build_tmp/ohos.toolchain.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1d29e94460c92efe99deb1c5bbad16db2f71eb9e --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/build_tmp/ohos.toolchain.cmake @@ -0,0 +1,30 @@ +set(CMAKE_CROSSCOMPILING TRUE) +set(CMAKE_SYSTEM_NAME Linux) +set(CMAKE_CXX_COMPILER_ID Clang) +SET (CMAKE_SYSTEM_PROCESSOR arm) + +SET ( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET ( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET ( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + +SET ( CROSS_COMPILATION_ARCHITECTURE armv7-a) + +set(CMAKE_TOOLCHAIN_PREFIX llvm-) + +set(PROJECT_ROOT /home/harmony/OpenHarmony) + +#指定c编译工具(确保工具链所在路径已经添加到了PATH环境变量中)和编译标志,使用clang编译时标志中必须指定--target,否则无法交叉编译。 +set(CMAKE_C_COMPILER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang) +set(CMAKE_C_FLAGS "--target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w") +#指定c++编译工具(确保工具链所在路径已经添加到了PATH环境变量中)和编译标志,必须指定--target,否则无法交叉编译。 +set(CMAKE_CXX_COMPILER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++) +set(CMAKE_CXX_FLAGS "--target=arm-linux-ohosmusl -D__clang__ -march=armv7-a -mfloat-abi=softfp -mfpu=neon-vfpv4 -w") +#指定链接工具和链接标志,必须指定--target和--sysroot,其中OHOS_ROOT_PATH可通过cmake命令后缀参数来指定。 +set(MY_LINK_FLAGS "--target=arm-linux-ohosmusl --sysroot=${PROJECT_ROOT}//out/rk3568-khdvk/obj/third_party/musl/") +set(CMAKE_LINKER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang) +set(CMAKE_CXX_LINKER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++) +set(CMAKE_C_LINKER ${PROJECT_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang) + +#指定链接库的查找路径。 +set(CMAKE_SYSROOT ${PROJECT_ROOT}//out/rk3568-khdvk/obj/third_party/musl/) +set(CMAKE_EXE_LINKER_FLAGS "-Wl,--dynamic-linker,/lib/ld-musl-arm.so.1") diff --git a/hdc/gn/test/storytest/test_single/test_project/main.cc b/hdc/gn/test/storytest/test_single/test_project/main.cc new file mode 100644 index 0000000000000000000000000000000000000000..6c3aeb4454a92cd9a23f497e129269576f6fb2c0 --- /dev/null +++ b/hdc/gn/test/storytest/test_single/test_project/main.cc @@ -0,0 +1,29 @@ +#include +#include + +double power(double base, int exponent) +{ + int result = base; + int i; + + if (exponent == 0) { + return 1; + } + + for(i = 1; i < exponent; ++i){ + result = result * base; + } + return result; +} +int main(int argc, char *argv[]) +{ + if (argc < 3){ + printf("Usage: %s base exponent \n", argv[0]); + return 1; + } + double base = atof(argv[1]); + int exponent = atoi(argv[2]); + double result = power(base, exponent); + printf("%g ^ %d is %g\n", base, exponent, result); + return 0; +} \ No newline at end of file diff --git a/hdc/service/test/storytest/test.py b/hdc/service/test/storytest/test.py new file mode 100644 index 0000000000000000000000000000000000000000..5177dcea0fac6d5fad08925786a399df8348e3ca --- /dev/null +++ b/hdc/service/test/storytest/test.py @@ -0,0 +1,53 @@ +# !/usr/bin/env python3 +# coding=utf-8 +""" +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +* +* HDF is dual licensed: you can use it either under the terms of +* the GPL, or the BSD license, at your option. +* See the LICENSE file in the root of this repository for complete details. +""" +import os +import sys +import shutil + +def do_test(fn): + if not os.path.isfile("test.h"): + return + if not os.path.exists("out"): + os.mkdir("out") + os.chdir("../../../../") + dir_main = "./hdc/service/service-gen/src/gen/main.js" + dir_test = "./test/service/storytest/" + fn + "/test.h" + dir_out = "./test/service/storytest/" + fn + "/out" + ret = os.popen("node " + dir_main + " -f " + dir_test + " -o " + dir_out + " -s 9001") + result = ret.read() + print(result) + + if "success" not in result: + print("error compile failed") + return + else: + print("compile ok") + + os.chdir("./test/service/storytest/" + fn) + os.system("npx mocha test.js") + shutil.rmtree(os.getcwd()+"/out") + +if __name__ == "__main__": + work_path = os.path.split(sys.argv[0])[0] + os.chdir(work_path) + if len(sys.argv) >= 2: + for fn in sys.argv[1:]: + if os.path.isdir(fn): + os.chdir(fn) + do_test(fn) + os.chdir("..") + else: + print("error",fn,"is not exist") + else: + for fn in os.listdir("."): + if os.path.isdir(fn): + os.chdir(fn) + do_test(fn) + os.chdir("..") diff --git a/hdc/service/test/storytest/test_project/test.h b/hdc/service/test/storytest/test_project/test.h new file mode 100644 index 0000000000000000000000000000000000000000..62dbf633dde6586bcef03d56231b0970bf54db1c --- /dev/null +++ b/hdc/service/test/storytest/test_project/test.h @@ -0,0 +1,30 @@ +#ifndef EXAM_H +#define EXAM_H +using namespace std; + +namespace OHOS{ + namespace Example{ + class Exam{ + public: + // string + string string2[]; + bool string3; + short string4; + long double string5[]; + string fun1(string v, string v1[]); + std::string fun2(std::string v, std::string v1[]); + char fun3(char v, char v1[]); + + // bool + bool fun7(bool v, bool v1[]); + + // number + short fun8(short v, short v1[]); + int fun9(int v, int v1[]); + uint32_t fun10(uint32_t v, uint32_t v1[]); + long fun12(long v, long v1[]); + float fun14(float v, float v1[]); + double fun15(double v, double v1[]); + } +} +#endif \ No newline at end of file diff --git a/hdc/service/test/storytest/test_project/test.js b/hdc/service/test/storytest/test_project/test.js new file mode 100644 index 0000000000000000000000000000000000000000..624b559b7e7bb6cc5c6680614b6f7824712dfa2e --- /dev/null +++ b/hdc/service/test/storytest/test_project/test.js @@ -0,0 +1,172 @@ +/* +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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. +*/ +var assert = require("assert"); +const path = require('path'); +var fs = require("fs"); + +describe('examservice file', function () { + it('Whether etc exists', function () { + dir_examservice = path.join(__dirname, "./out/examservice"); + var flag = fs.existsSync(dir_examservice); + assert.deepStrictEqual(flag,true); + }); + + it('Whether etc exists', function () { + dir_etc = path.join(__dirname, "./out/examservice/etc"); + if (fs.existsSync(dir_etc)) { + process.chdir(dir_etc); + var flag = fs.existsSync('BUILD.gn'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('exam_service.cfg'); + assert.deepStrictEqual(flag, true); + } + }); + + it('Whether include exists', function () { + dir_include = path.join(__dirname, "./out/examservice/include"); + if (fs.existsSync(dir_include)) { + process.chdir(dir_include); + var flag = fs.existsSync('exam_service.h'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('exam_service_proxy.h'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('exam_service_stub.h'); + assert.deepStrictEqual(flag, true); + } + }); + + it('Whether interface exists', function () { + dir_interface = path.join(__dirname, "./out/examservice/interface"); + if (fs.existsSync(dir_interface)) { + process.chdir(dir_interface); + var flag = fs.existsSync('i_exam_service.h'); + assert.deepStrictEqual(flag, true); + } + }); +}); + +describe('examservice file', function () { + + it('Whether sa_profile exists', function () { + dir_sa_profile = path.join(__dirname, "./out/examservice/sa_profile"); + if (fs.existsSync(dir_sa_profile)) { + process.chdir(dir_sa_profile); + var flag = fs.existsSync('9001.xml'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('BUILD.gn'); + assert.deepStrictEqual(flag, true); + } + }); + + it('Whether src exists', function () { + dir_src = path.join(__dirname, "./out/examservice/src"); + if (fs.existsSync(dir_src)) { + process.chdir(dir_src); + var flag = fs.existsSync('exam_client.cpp'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('exam_service.cpp'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('exam_service_proxy.cpp'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('exam_service_stub.cpp'); + assert.deepStrictEqual(flag, true); + } + }); + + it('Whether examservice/BUILD.gn exists', function () { + dir_examservice = path.join(__dirname, "./out/examservice"); + process.chdir(dir_examservice); + var flag = fs.existsSync('BUILD.gn'); + assert.deepStrictEqual(flag, true); + flag = fs.existsSync('bundle.json'); + assert.deepStrictEqual(flag, true); + }); +}); + + +describe('out/examservice/src/exam_service.cpp file', function () { + + dir_src = path.join(__dirname, "./out/examservice/src"); + let str = ""; + if (fs.existsSync(dir_src)) { + process.chdir(dir_src); + let data = fs.readFileSync('./exam_service.cpp',{ encoding: "utf8" }); + data = data.substring(data.indexOf("string"),data.length-2); + str = data.replace(/\s*/g,"");; + } + + it('fun1 genarate succ', function () { + var flag = str.includes("stringExamService::fun1(stringv,stringv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun2 genarate succ', function () { + var flag = str.includes("std::stringExamService::fun2(std::stringv,std::stringv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun3 genarate succ', function () { + var flag = str.includes("charExamService::fun3(charv,charv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun7 genarate succ', function () { + var flag = str.includes("boolExamService::fun7(boolv,boolv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun8 genarate succ', function () { + var flag = str.includes("shortExamService::fun8(shortv,shortv1)"); + assert.deepStrictEqual(flag,true); + }); +}); + + +describe('out/examservice/src/exam_service.cpp file', function () { + + dir_src = path.join(__dirname, "./out/examservice/src"); + let str = ""; + if (fs.existsSync(dir_src)) { + process.chdir(dir_src); + let data = fs.readFileSync('./exam_service.cpp',{ encoding: "utf8" }); + data = data.substring(data.indexOf("string"),data.length-2); + str = data.replace(/\s*/g,""); + } + + it('fun9 genarate succ', function () { + var flag = str.includes("intExamService::fun9(intv,intv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun10 genarate succ', function () { + var flag = str.includes("uint32_tExamService::fun10(uint32_tv,uint32_tv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun12 genarate succ', function () { + var flag = str.includes("longExamService::fun12(longv,longv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun14 genarate succ', function () { + var flag = str.includes("floatExamService::fun14(floatv,floatv1)"); + assert.deepStrictEqual(flag,true); + }); + + it('fun14 genarate succ', function () { + var flag = str.includes("doubleExamService::fun15(doublev,doublev1)"); + assert.deepStrictEqual(flag,true); + }); +}); diff --git a/ts_test/storytest/test.py b/ts_test/storytest/test.py new file mode 100644 index 0000000000000000000000000000000000000000..6a5f6bf9537462231e769a418a252b6f858172a8 --- /dev/null +++ b/ts_test/storytest/test.py @@ -0,0 +1,53 @@ +# !/usr/bin/env python3 +# coding=utf-8 +""" +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +* +* HDF is dual licensed: you can use it either under the terms of +* the GPL, or the BSD license, at your option. +* See the LICENSE file in the root of this repository for complete details. +""" +import os +import sys +import shutil + +def do_test(fn): + if not os.path.isfile("test.h"): + return + if not os.path.exists("out"): + os.mkdir("out") + os.chdir("../../../../") + dir_main = "./src/gen/cmd_gen.js" + dir_test = "./test/ts/storytest/" + fn + "/test.h" + dir_out = "./test/ts/storytest/" + fn + "/out" + ret = os.popen("node " + dir_main + " -f " + dir_test + " -o " + dir_out) + result = ret.read() + print(result) + + if "success" not in result: + print("error compile failed") + return + else: + print("compile ok") + + os.chdir("./test/ts/storytest/" + fn) + os.system("npx mocha test.js") + #shutil.rmtree(os.getcwd()+"/out") + +if __name__ == "__main__": + work_path = os.path.split(sys.argv[0])[0] + os.chdir(work_path) + if len(sys.argv) >= 2: + for fn in sys.argv[1:]: + if os.path.isdir(fn): + os.chdir(fn) + do_test(fn) + os.chdir("..") + else: + print("error",fn,"is not exist") + else: + for fn in os.listdir("."): + if os.path.isdir(fn): + os.chdir(fn) + do_test(fn) + os.chdir("..") diff --git a/ts_test/storytest/test_project/out/napi_gen.log b/ts_test/storytest/test_project/out/napi_gen.log new file mode 100644 index 0000000000000000000000000000000000000000..a702829d0469c386627df4160162be12baef3137 --- /dev/null +++ b/ts_test/storytest/test_project/out/napi_gen.log @@ -0,0 +1,258 @@ +2022/11/23 16:54:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 16:54:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 16:54:07 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/23 16:56:55 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 16:56:55 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 16:56:55 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/23 16:57:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 16:57:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 16:57:27 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/23 17:15:31 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 17:15:31 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 17:15:31 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/23 17:20:06 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 17:20:06 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 17:20:06 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/23 17:20:50 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 17:20:50 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 17:20:50 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/23 17:21:11 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 17:21:11 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 17:21:11 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/23 17:21:22 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/23 17:21:22 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/23 17:21:22 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:28:06 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:28:06 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:28:06 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:28:23 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:28:23 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:28:23 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:29:57 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:29:57 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:29:57 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:32:45 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:32:45 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:32:45 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:33:23 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:33:23 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:33:23 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:33:31 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:33:31 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:33:31 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:34:49 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:34:49 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:34:49 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:35:41 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:35:41 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:35:41 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:39:30 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:39:30 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:39:30 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:43:39 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:43:39 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:43:39 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:48:13 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:48:13 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:48:13 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:48:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:48:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:48:26 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:50:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:50:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:50:40 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:51:04 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:51:04 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:51:04 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:51:39 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:51:39 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:51:39 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:51:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:51:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:51:52 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:54:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:54:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:54:07 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:54:30 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:54:30 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:54:30 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:54:58 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:54:58 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:54:58 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:55:17 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:55:17 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:55:17 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:55:27 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:55:27 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:55:27 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 09:56:57 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 09:56:57 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 09:56:57 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:02:10 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:02:10 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:02:10 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:02:28 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:02:28 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:02:28 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:03:14 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:03:14 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:03:14 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:08:37 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:08:37 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:08:37 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:27:12 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:27:12 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:27:12 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:27:33 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:27:33 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:27:33 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:29:44 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:29:44 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:29:44 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:34:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:34:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:34:40 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:34:56 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:34:56 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:34:56 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:35:21 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:35:21 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:35:21 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:37:14 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:37:14 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:37:14 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:37:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:37:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:37:26 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:38:22 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:38:22 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:38:22 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:39:03 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:39:03 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:39:03 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:42:12 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:42:12 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:42:12 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:42:27 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:42:27 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:42:28 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:43:38 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:43:38 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:43:38 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:43:49 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:43:49 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:43:49 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:44:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:44:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:44:53 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:45:16 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:45:16 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:45:16 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:46:23 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:46:23 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:46:23 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:47:47 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:47:47 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:47:47 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:48:51 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:48:51 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:48:51 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:49:51 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:49:51 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:49:51 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:50:00 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:50:00 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:50:00 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:50:51 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:50:51 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:50:51 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:51:21 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:51:21 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:51:21 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:55:33 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:55:33 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:55:33 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:55:44 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:55:44 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:55:45 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:56:57 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:56:57 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:56:58 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:58:59 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:58:59 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:58:59 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 10:59:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 10:59:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 10:59:40 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:00:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:00:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:00:26 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:05:42 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:05:42 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:05:42 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:06:21 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:06:21 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:06:21 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:07:10 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:07:10 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:07:11 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:08:03 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:08:03 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:08:03 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:08:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:08:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:08:07 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:08:47 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:08:47 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:08:47 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:09:25 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:09:25 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:09:25 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:09:28 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:09:28 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:09:28 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:09:38 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:09:38 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:09:38 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:09:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:09:40 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:09:40 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:09:47 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:09:47 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:09:47 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:09:50 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:09:50 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:09:50 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:09:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:09:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:09:52 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:14:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:14:26 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:14:26 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:16:50 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:16:50 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:16:50 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:17:35 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:17:35 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:17:35 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:19:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:19:52 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:19:52 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:22:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:22:07 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:22:07 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:22:28 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:22:28 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:22:28 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:23:05 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:23:05 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:23:05 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:23:14 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:23:14 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:23:15 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:23:24 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:23:24 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:23:24 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success +2022/11/24 11:23:35 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(89:13)] [INF] check file [] +2022/11/24 11:23:35 at checkGenerate [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(92:17)] [INF] convert .h file to .ts file... +2022/11/24 11:23:35 at Object. [/home/harmony/linshi/napi_generator_2/src/gen/cmd_gen.js(116:13)] [INF] success diff --git a/ts_test/storytest/test_project/out/test.d.ts b/ts_test/storytest/test_project/out/test.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f685a00df78384e1b0ea65d8beea51b20fa791f0 --- /dev/null +++ b/ts_test/storytest/test_project/out/test.d.ts @@ -0,0 +1,27 @@ +declare namespace OHOS { + class Test { + param6: Array; + fun16(v: string, v1: Array): string; + fun17(v: number, v1: Array): number; + } +} +declare namespace OHOS::Example { + class Exam { + param2: Array; + param3: boolean; + param4: number; + param5: Array; + fun1(v: string, v1: Array): string; + fun2(v: string, v1: Array): string; + fun3(v: string, v1: Array): string; + fun7(v: boolean, v1: Array): boolean; + fun8(v: number, v1: Array): number; + fun9(v: number, v1: Array): number; + fun10(v: number, v1: Array): number; + fun12(v: number, v1: Array): number; + fun14(v: number, v1: Array): number; + fun15(v: number, v1: Array): number; + } +} + +export default OHOS; \ No newline at end of file diff --git a/ts_test/storytest/test_project/test.h b/ts_test/storytest/test_project/test.h new file mode 100644 index 0000000000000000000000000000000000000000..c70f2cdc6bec7c6c196546c42c5ab42b009a0ac1 --- /dev/null +++ b/ts_test/storytest/test_project/test.h @@ -0,0 +1,38 @@ +#ifndef EXAM_H +#define EXAM_H +using namespace std; + +namespace OHOS{ + namespace Example{ + class Exam{ + public: + // string + string param2[]; + bool param3; + short param4; + long double param5[]; + string fun1(string v, string v1[]); + std::string fun2(std::string v, std::string v1[]); + char fun3(char v, char v1[]); + + // bool + bool fun7(bool v, bool v1[]); + + // number + short fun8(short v, short v1[]); + int fun9(int v, int v1[]); + uint32_t fun10(uint32_t v, uint32_t v1[]); + long fun12(long v, long v1[]); + float fun14(float v, float v1[]); + double fun15(double v, double v1[]); + } + } + class Test{ + public: + // string + string param6[]; + string fun16(string v, string v1[]); + double fun17(double v, double v1[]); + } +} +#endif \ No newline at end of file diff --git a/ts_test/storytest/test_project/test.js b/ts_test/storytest/test_project/test.js new file mode 100644 index 0000000000000000000000000000000000000000..4c5356624ff6630411de52a5a585d76ca7ddba3b --- /dev/null +++ b/ts_test/storytest/test_project/test.js @@ -0,0 +1,157 @@ +/* +* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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. +*/ +var assert = require("assert"); +const path = require('path'); +var fs = require("fs"); + +describe('OHOS', function () { + dir_out = path.join(__dirname, "./out"); + if (fs.existsSync(dir_out)) { + process.chdir(dir_out); + let data = fs.readFileSync('test.d.ts', { encoding: "utf8" }); + data = data.substring(data.indexOf("OHOS")+6, data.lastIndexOf("declare") - 2); + let str = data.replace(/\s*/g,""); + + it('assert param6 exists', function () { + param6 = str.substring(str.indexOf("param6"),str.indexOf("fun16")); + assert.deepStrictEqual(param6, "param6:Array;"); + }); + + it('assert fun16 exists', function () { + fun16 = str.substring(str.indexOf("fun16"),str.indexOf("fun17")); + assert.deepStrictEqual(fun16, "fun16(v:string,v1:Array):string;"); + }); + + it('assert fun17 exists', function () { + fun17 = str.substring(str.indexOf("fun17"),str.length-1); + assert.deepStrictEqual(fun17, "fun17(v:number,v1:Array):number;"); + }); + + } else { + console.log(); + console.log("ERROR:\"" + dir_out + "\"does not exist"); + } +}); + + +describe('OHOS::Example1', function () { + dir_out = path.join(__dirname, "./out"); + if (fs.existsSync(dir_out)) { + process.chdir(dir_out); + let data = fs.readFileSync('test.d.ts', { encoding: "utf8" }); + data = data.substring(data.indexOf("OHOS::Example")+15, data.indexOf("export") - 2); + let str = data.replace(/\s*/g,""); + + it('Whether test.d.ts exists', function () { + let flag = fs.existsSync('test.d.ts'); + assert.deepStrictEqual(flag,true); + }); + + it('assert exam exists', function () { + exam = str.substring(0,str.indexOf("{")); + assert.deepStrictEqual(exam,"classExam"); + }); + + it('assert param2 exists', function () { + param2 = str.substring(str.indexOf("param2"),str.indexOf("param3")); + assert.deepStrictEqual(param2, "param2:Array;"); + }); + + it('assert param3 exists', function () { + param3 = str.substring(str.indexOf("param3"),str.indexOf("param4")); + assert.deepStrictEqual(param3, "param3:boolean;"); + }); + + it('assert param4 exists', function () { + param4 = str.substring(str.indexOf("param4"),str.indexOf("param5")); + assert.deepStrictEqual(param4, "param4:number;"); + }); + + it('assert param5 exists', function () { + param5 = str.substring(str.indexOf("param5"),str.indexOf("fun1")); + assert.deepStrictEqual(param5, "param5:Array;"); + }); + + it('assert fun1 exists', function () { + fun1 = str.substring(str.indexOf("fun1"),str.indexOf("fun2")); + assert.deepStrictEqual(fun1, "fun1(v:string,v1:Array):string;"); + }); + + it('assert fun2 exists', function () { + fun2 = str.substring(str.indexOf("fun2"),str.indexOf("fun3")); + assert.deepStrictEqual(fun2, "fun2(v:string,v1:Array):string;"); + }); + + } else { + console.log(); + console.log("ERROR:\"" + dir_out + "\"does not exist"); + } +}); + + +describe('OHOS::Example2', function () { + dir_out = path.join(__dirname, "./out"); + if (fs.existsSync(dir_out)) { + process.chdir(dir_out); + let data = fs.readFileSync('test.d.ts', { encoding: "utf8" }); + data = data.substring(data.indexOf("OHOS::Example")+15, data.indexOf("export") - 2); + let str = data.replace(/\s*/g,""); + + it('assert fun3 exists', function () { + fun3 = str.substring(str.indexOf("fun3"),str.indexOf("fun7")); + assert.deepStrictEqual(fun3, "fun3(v:string,v1:Array):string;"); + }); + + it('assert fun7 exists', function () { + fun7 = str.substring(str.indexOf("fun7"),str.indexOf("fun8")); + assert.deepStrictEqual(fun7, "fun7(v:boolean,v1:Array):boolean;"); + }); + + it('assert fun8 exists', function () { + fun8 = str.substring(str.indexOf("fun8"),str.indexOf("fun9")); + assert.deepStrictEqual(fun8, "fun8(v:number,v1:Array):number;"); + }); + + it('assert fun9 exists', function () { + fun9 = str.substring(str.indexOf("fun9"),str.indexOf("fun10")); + assert.deepStrictEqual(fun9, "fun9(v:number,v1:Array):number;"); + }); + + it('assert fun10 exists', function () { + fun10 = str.substring(str.indexOf("fun10"),str.indexOf("fun12")); + assert.deepStrictEqual(fun10, "fun10(v:number,v1:Array):number;"); + }); + + it('assert fun12 exists', function () { + fun12 = str.substring(str.indexOf("fun12"),str.indexOf("fun14")); + assert.deepStrictEqual(fun12, "fun12(v:number,v1:Array):number;"); + }); + + it('assert fun14 exists', function () { + fun14 = str.substring(str.indexOf("fun14"),str.indexOf("fun15")); + assert.deepStrictEqual(fun14, "fun14(v:number,v1:Array):number;"); + }); + + it('assert fun15 exists', function () { + fun15 = str.substring(str.indexOf("fun15"),str.length-2); + assert.deepStrictEqual(fun15, "fun15(v:number,v1:Array):number;"); + }); + + } else { + console.log(); + console.log("ERROR:Testcase execution failed!"); + console.log("ERROR:\"" + dir_out + "\"does not exist"); + } +}); \ No newline at end of file