Home
last modified time | relevance | path

Searched refs:hello (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/ohos5.0/build/docs/
H A Dcmake转gn指导文档.md188 假设我们有一个简单的CMake项目,包含两个源文件:main.cpp和hello.cpp,以及一个头文件hello.h。CMakeLists.txt文件内容如下:
192 project(hello)
194 add_executable(hello main.cpp hello.cpp hello.h)
199 hello/
201 │ └── hello.h
203 ├── hello.cpp
208 1. 在OpenHarmony代码中,增加example目录,将hello示例放在example目录下,在hello目录下新建BUILD.gn文件,示例如下:
219 part_name = "hello"
227 part_name = "hello"
263 "base_group": [ "//example/hello:hello" ],
[all …]
H A Dhow to use CMake with NDK.md93 └── hello.cpp
107 src目录下源码文件hello.cpp内容:
114 std::cout<< "hello world!" <<std::endl;
122 SET(LIBHELLO_SRC hello.cpp)
126 #将静态库的名字hello_static修改为hello
130 ADD_LIBRARY(hello SHARED ${LIBHELLO_SRC})
131 #将动态库的名字修改为hello
132 SET_TARGET_PROPERTIES(hello PROPERTIES OUTPUT_NAME "hello")
167 源码hello.cpp内容:
174 std::cout<< "hello world!" <<std::endl;
[all …]
H A D编译构建调试文档.md153 //:hello
163 //:hello
529 [3/6] g++ -MMD -MF obj/hello.hello.o.d -fPIC -pthread -c ../hello.cc -o obj/hello.hello.o
549 ../hello.cc
560 obj/hello.hello.o: cxx
561 hello: link
568 :hello: phony
579 g++ -MMD -MF obj/hello.hello.o.d -fPIC -pthread -c ../hello.cc -o obj/hello.hello.o
589 - ninja -t graph obj/hello.hello.o|dot -Tpng -o rk.png
595 - ninja -t commands| grep obj/hello.hello.o
[all …]
/ohos5.0/docs/zh-cn/device-dev/quick-start/
H A Dquickstart-ide-3568-helloworld.md14 拉取openharmony项目代码,在代码根目录创建sample子系统文件夹,在子系统目录下创建hello部件文件夹,hello文件夹中创建hello源码目录,构建文件BUILD.gn及部件配置文件…
19 sample/hello
61 再添加头文件sample/hello/include/helloworld.h,代码如下所示。
104 part_name = "hello" # 所属部件名称,必选
117 "name": "@ohos/hello",
123 "destPath": "sample/hello"
128 "name": "hello",
141 "//sample/hello:helloworld"
177 "sample:hello":{},
183 在vendor/hihope/rk3568/config.json中添加对应的hello部件,直接添加到原有部件后即可。
[all …]
H A Dquickstart-pkg-3568-helloworld.md10 拉取openharmony项目代码,在代码根目录创建sample子系统文件夹,在子系统目录下创建hello部件文件夹,hello文件夹中创建hello源码目录,构建文件BUILD.gn及部件配置文件…
15 sample/hello
57 再添加头文件sample/hello/include/helloworld.h,代码如下所示。
100 part_name = "hello" # 所属部件名称,必选
113 "name": "@ohos/hello",
119 "destPath": "sample/hello"
124 "name": "hello",
137 "//sample/hello:helloworld"
173 "sample:hello":{},
179 在vendor/hihope/rk3568/config.json中添加对应的hello部件,直接添加到原有部件后即可。
[all …]
H A Dquickstart-appendix-hi3516-pkg.md27 applications/sample/hello
66 再添加头文件applications/sample/hello/include/helloworld.h,代码如下所示。
87 1. 新建applications/sample/hello/BUILD.gn文件,内容如下所示:
104 part_name = "hello" # 所属部件名称,必选
112 "name": "@ohos/hello",
118 "destPath": "applications/sample/hello"
123 "name": "hello",
136 "//applications/sample/hello:helloworld"
153 "path": "applications/sample/hello",
165 "sample:hello":{},
[all …]
H A Dquickstart-pkg-3516-helloworld.md14 applications/sample/hello
27 …新建applications/sample/hello/src/helloworld.c目录及文件,代码如下所示,用户可以自定义修改打印内容(例如:修改OHOS为World)。当前应用程序可支持标…
45 新建applications/sample/hello/BUILD.gn文件,内容如下所示:
50 lite_component("hello-OHOS") {
90 "description": "hello world samples.",
93 "applications/sample/hello"
96 "//applications/sample/hello:hello-OHOS"
H A Dquickstart-ide-3516-helloworld.md19 applications/sample/hello
32 …新建applications/sample/hello/src/helloworld.c目录及文件,代码如下所示,用户可以自定义修改打印内容(例如:修改OHOS为World)。当前应用程序可支持标…
50 新建applications/sample/hello/BUILD.gn文件,内容如下所示:
55 lite_component("hello-OHOS") {
98 "description": "hello world samples.",
101 "applications/sample/hello"
104 "//applications/sample/hello:hello-OHOS"
H A Dquickstart-appendix-hi3516-ide.md30 applications/sample/hello
69 再添加头文件applications/sample/hello/include/helloworld.h,代码如下所示。
90 1. 新建applications/sample/hello/BUILD.gn文件,内容如下所示:
107 part_name = "hello" # 所属部件名称,必选
111 2. 新建applications/sample/hello/bundle.json文件,添加sample部件描述,内容如下所示。
115 "name": "@ohos/hello",
121 "destPath": "applications/sample/hello"
126 "name": "hello",
139 "//applications/sample/hello:helloworld"
156 "path": "applications/sample/hello",
[all …]
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-debug-shell-file-chmod.md36 举例:修改hello-openharmony.txt 文件权限为644和777。
41 **示例** 修改/dev目录下 hello-openharmony.txt 文件的权限
44 OHOS:/dev$ chmod 644 hello-openharmony.txt
45 OHOS:/dev$ ll hello-openharmony.txt
46 -rw-r--r-- 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt
47 OHOS:/dev$ chmod 777 hello-openharmony.txt
48 OHOS:/dev$ ll hello-openharmony.txt
49 -rwxrwxrwx 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt
H A Dkernel-small-debug-shell-file-cp.md45 举例:cp hello-OHOS.txt hello-openharmony.txt ./tmp/
54 bin hello-OHOS.txt proc system vendor
55 dev hello-openharmony.txt sdcard userdata
58 OHOS:/$ cp hello-OHOS.txt hello-openharmony.txt tmp/
61 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-OHOS.txt*
62 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-openharmony.txt*
H A Dkernel-small-debug-shell-file-cat.md30 举例:cat hello-openharmony.txt
35 **示例** 查看 hello-openharmony.txt 文件的信息
38 OHOS # cat hello-openharmony.txt
/ohos5.0/docs/zh-cn/application-dev/reference/apis-performance-analysis-kit/
H A Djs-apis-hilog.md90 字符串`"hello"`填入`%{public}s`,整型数`3`填入`%{private}d`,输出日志:
93 08-05 12:21:47.579 2695 2703 D A00001/testTag: hello World <private>
120 hilog.info(0x0001, "testTag", "%{public}s World %{private}d", "hello", 3);
123 字符串`"hello"`填入`%{public}s`,整型数`3`填入`%{private}d`,输出日志:
126 08-05 12:21:47.579 2695 2703 I A00001/testTag: hello World <private>
156 字符串`"hello"`填入`%{public}s`,整型数`3`填入`%{private}d`,输出日志:
159 08-05 12:21:47.579 2695 2703 W A00001/testTag: hello World <private>
189 字符串`"hello"`填入`%{public}s`,整型数`3`填入`%{private}d`,输出日志:
192 08-05 12:21:47.579 2695 2703 E A00001/testTag: hello World <private>
222 字符串`"hello"`填入`%{public}s`,整型数`3`填入`%{private}d`,输出日志:
[all …]
/ohos5.0/docs/en/device-dev/quick-start/
H A Dquickstart-ide-3568-helloworld.md14 …the source code root directory, add the **sample/hello** directory, and then create therein the **
19 sample/hello
61 Add the header file **sample/hello/include/helloworld.h**. The sample code is as follows:
104 part_name = "hello" # Component name. This parameter is mandatory.
117 "name": "@ohos/hello",
123 "destPath": "sample/hello"
128 "name": "hello",
141 "//sample/hello:helloworld"
178 "sample:hello":{},
184 … In the **vendor/hihope/rk3568/config.json** file, add the **hello** part after the existing part.
[all …]
H A Dquickstart-pkg-3568-helloworld.md10 …the source code root directory, add the **sample/hello** directory, and then create therein the **
15 sample/hello
57 Add the header file **sample/hello/include/helloworld.h**. The sample code is as follows:
100 part_name = "hello" # Component name. This parameter is mandatory.
113 "name": "@ohos/hello",
119 "destPath": "sample/hello"
124 "name": "hello",
137 "//sample/hello:helloworld"
174 "sample:hello":{},
181 … In the **vendor/hihope/rk3568/config.json** file, add the **hello** part after the existing part.
[all …]
H A Dquickstart-pkg-3516-helloworld.md14 applications/sample/hello
27 …Create the **applications/sample/hello/src/helloworld.c** directory and file whose code is shown i…
45 Create the **applications/sample/hello/BUILD.gn** file. The file content is as follows:
50 lite_component("hello-OHOS") {
90 "description": "hello world samples.",
93 "applications/sample/hello"
96 "//applications/sample/hello:hello-OHOS"
H A Dquickstart-ide-3516-helloworld.md19 applications/sample/hello
32 …Create the **applications/sample/hello/src/helloworld.c** directory and file whose code is shown i…
50 Create the **applications/sample/hello/BUILD.gn** file. The file content is as follows:
55 lite_component("hello-OHOS") {
99 "description": "hello world samples.",
102 "applications/sample/hello"
105 "//applications/sample/hello:hello-OHOS"
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-shell-file-cp.md45 Run **cp hello-OHOS.txt hello-openharmony.txt ./tmp/**.
50 Copy **hello-OHOS.txt** and **hello-openharmony.txt** to **/tmp/**.
54 bin hello-OHOS.txt proc system vendor
55 dev hello-openharmony.txt sdcard userdata
58 OHOS:/$ cp hello-OHOS.txt hello-openharmony.txt tmp/
61 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-OHOS.txt*
62 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-openharmony.txt*
H A Dkernel-small-debug-shell-file-chmod.md36 Change the permissions on the **hello-openharmony.txt** file to **644** and **777**.
41 Modify the permissions on the **hello-openharmony.txt** file in the **/dev** directory.
44 OHOS:/dev$ chmod 644 hello-openharmony.txt
45 OHOS:/dev$ ll hello-openharmony.txt
46 -rw-r--r-- 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt
47 OHOS:/dev$ chmod 777 hello-openharmony.txt
48 OHOS:/dev$ ll hello-openharmony.txt
49 -rwxrwxrwx 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js-lite/
H A Djs-lite-framework-localization.md20 "hello": "Hello world!",
47 <text>{{ $t('strings.hello') }}</text>
53 <text>{{ hello }}</text>
71 hello: '',
77 this.hello = this.$t('strings.hello');
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-basic-text.md84 <text class="title textcolor">hello world with color</text>
85 <text class="title textsize">hello world with font-size</text>
86 <text class="title textletterspacing">hello world with letter-spacing</text>
87 <text class="title textwordspacing">hello world with word-spacing</text>
88 <text class="title textstyle">hello world with italic</text>
89 <text class="title textweight">hello world with font-weight</text>
90 <text class="title textdecoration1">hello world with underline</text>
91 <text class="title textdecoration2">hello world with line-through</text>
92 <text class="title textalign">hello world with text-align:right</text>
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Djs-framework-multiple-languages.md35 "hello": "Hello world!",
97 | $t | Function | 请见表 $t参数说明 | 是 | 根据系统语言完成简单的替换:this.$t('strings.hello')。 |
111 <text>{{ $t('strings.hello') }}</text>
117 <text>{{ hello }}</text>
135 hello: '',
141 this.hello = this.$t('strings.hello');
H A Djs-framework-resource-restriction.md44 …&nbsp;string | 获取资源限定下具体的资源内容。例如:$r('strings.hello')。<br/>参数说明:<br/>-&nbsp;key:定义在资源限定文件中的键值,如stri…
51 "hello": "hello world"
/ohos5.0/docs/zh-cn/application-dev/dfx/
H A Dhitracechain-guidelines-ndk.md38 …应用,默认生成的项目中包含index.ets文件,在entry\src\main\cpp目录下会自动生成一个cpp文件(hello.cpp或napi_init.cpp,本示例以hello.cpp文…
39 index.ets代码如下,onClick中调用了testNapi的add函数,该函数在hello.cpp中定义。
77 add_library(entry SHARED hello.cpp)
81 3. 在hello.cpp文件中引用hitrace头文件。
87 4. 在hello.cpp的Add函数中,使用OH_HiTrace_BeginChain函数开启一个跟踪链,使用OH_HiTrace_EndChain关闭跟踪。
124 5. 运行项目,会在设备上自动生成一个hap应用,点击hap上的“Hello World”文字,会调用hello.cpp中的add函数,查看hitrace日志,会出现如下信息:
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.29/
H A Dchangelogs-arkui.md132 regular_value: "hello",
133 local_value: "hello",
134 provider_value: "hello",
135 consumer_value: "hello"
143 regular_value: string = "hello";
144 @Local local_value: string = "hello";
145 @Provider() provider_value: string = "hello";
146 @Consumer() consumer_value: string = "hello";

12345678910>>...17