1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//foundation/graphic/standard/utils/lex_yacc/lex_yacc.gni") 16 17## Build wmlayout_scss_parser {{{ 18lex_yacc("wmlayout_scss_parser_parser") { 19 lex = "lexer.l" 20 yacc = "parser.y" 21} 22 23config("wmlayout_scss_parser_config") { 24 visibility = [ ":*" ] 25 26 include_dirs = 27 [ "//foundation/graphic/standard/interfaces/innerkits/wmclient" ] 28 29 cflags = [ 30 "-Wall", 31 "-Werror", 32 "-g3", 33 ] 34} 35 36ohos_executable("wmlayout_scss_parser") { 37 install_enable = false 38 39 sources = [ 40 "driver.cpp", 41 "main.cpp", 42 "scanner.cpp", 43 ] 44 45 configs = [ ":wmlayout_scss_parser_config" ] 46 47 deps = [ 48 ":wmlayout_scss_parser_parser", 49 "../..:layout_header", 50 ] 51 52 subsystem_name = "graphic" 53 part_name = "graphic_standard" 54} 55## Build wmlayout_scss_parser }}} 56