1 Star 0 Fork 151

张曦龙/third_party_flutter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BUILD.gn 161.26 KB
一键复制 编辑 原始数据 按行查看 历史
zhongjianfei 提交于 2021-09-14 15:39 . zhongjianfei@huawei.com
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/ohos.gni")
import("flutter_ace_config.gni")
import("flutter_engine.gni")
import("skia/gn/flutter_defines.gni")
# ------------------------------------------------
# Main block begin of skia
# ------------------------------------------------
# symbol link for skia include dirs
system_skia_override_path = root_out_dir + "/override/system"
third_party_skia_override_path = root_out_dir + "/override/third_party"
template("make_skia_include_dir") {
forward_variables_from(invoker, "*")
action("make_${target_name}_skia_include_dir") {
script = "make_skia_include_dir.py"
inputs = [ src_path ]
outputs = [ dst_path ]
args = [
rebase_path(dst_path, root_build_dir),
rebase_path(src_path, root_build_dir),
]
}
}
make_skia_include_dir("third_party") {
src_path = "skia"
dst_path = third_party_skia_override_path + "/third_party"
}
# if need the stack unwind information for debugging, remove this config from the target configs.
config("reduce_eh_frame_config") {
if (!use_mingw_win && !use_mac) {
cflags = [
"-fno-unwind-tables",
"-fomit-frame-pointer",
]
cflags_cc = cflags
}
}
template("make_skia_deps") {
forward_variables_from(invoker, "*")
platform = target_name
ohos_source_set("ace_skia_$platform") {
public_configs = [
":skia_config",
":harfbuzz_config",
]
deps = [
":ace_fontmgr_$platform",
":ace_gif",
#":ace_gpu",
":ace_heif",
":ace_jpeg",
":ace_libexpat",
":ace_libfreetype2",
":ace_libharfbuzz_$platform",
":ace_libicu_$platform",
":ace_libjpeg",
":ace_libpng",
":ace_libsfntly_$platform",
":ace_libwebp",
":ace_pdf_$platform",
":ace_png",
":ace_skcms",
":ace_skia_core",
":ace_skia_opts",
":ace_svg_model_$platform",
":ace_typeface_freetype",
":ace_webp",
":ace_xml_$platform",
]
public_configs += [ ":ace_svg_model_config" ]
if (is_standard_system) {
deps += [ ":make_third_party_skia_include_dir" ]
}
}
}
make_skia_deps("ohos") {
}
make_skia_deps("windows") {
}
make_skia_deps("mac") {
}
# ------------------------------------------------
# Main block end of skia
# ------------------------------------------------
template("flutter_engine") {
# get is_ohos_platform
forward_variables_from(invoker, "*")
if (use_mingw_win || use_mac) {
ohos_source_set(target_name) {
defines += invoker.defines
deps = [ ":flutter_glfw_preview_$platform" ]
}
} else {
ohos_static_library(target_name) {
defines += invoker.defines
deps = [
":flutter_engine_common_$platform",
":flutter_engine_flow_$platform",
":flutter_engine_fml_$platform",
":flutter_engine_lib_ui_$platform",
":flutter_engine_shell_$platform",
":thirdparty_lib_txt_$platform",
]
}
}
}
flutter_engine("third_party_flutter_engine_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
flutter_engine("third_party_flutter_engine_windows") {
defines = ace_windows_defines
platform = "windows"
}
flutter_engine("third_party_flutter_engine_mac") {
defines = ace_mac_defines
platform = "mac"
}
# Common config for flutter source
config("flutter_config") {
visibility = [ ":*" ]
include_dirs = [
"$flutter_root",
"engine",
"engine/flutter",
"engine/flutter/third_party/txt/src",
]
cflags = [
"-fvisibility=hidden",
"-fdata-sections",
"-ffunction-sections",
"-Os",
]
cflags_cc = [
"-fvisibility-inlines-hidden",
"-Os",
]
defines = []
if (use_mingw_win || use_mac) {
defines += ace_common_defines
cflags_cc += [
"-std=c++17",
"-Wno-thread-safety-attributes",
"-Wno-thread-safety-analysis",
"-Wno-ignored-attributes",
]
}
if (is_standard_system) {
cflags_cc += [
"-Wno-thread-safety-attributes",
"-Wno-thread-safety-analysis",
]
defines += [ "SK_BUILD_FOR_UNIX" ]
}
}
config("flutter_engine_fml_mac_config") {
cflags = [
"-Wno-thread-safety-attributes",
"-Wno-thread-safety-analysis",
]
}
template("flutter_engine_fml") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [
":flutter_config",
":icu_config_$platform",
]
defines += invoker.defines
sources = [
"engine/flutter/fml/base32.cc",
"engine/flutter/fml/command_line.cc",
"engine/flutter/fml/concurrent_message_loop.cc",
"engine/flutter/fml/delayed_task.cc",
"engine/flutter/fml/file.cc",
"engine/flutter/fml/gpu_thread_merger.cc",
"engine/flutter/fml/icu_util.cc",
"engine/flutter/fml/log_settings.cc",
"engine/flutter/fml/log_settings_state.cc",
"engine/flutter/fml/logging.cc",
"engine/flutter/fml/mapping.cc",
"engine/flutter/fml/memory/weak_ptr_internal.cc",
"engine/flutter/fml/message.cc",
"engine/flutter/fml/message_loop.cc",
"engine/flutter/fml/message_loop_impl.cc",
"engine/flutter/fml/message_loop_task_queues.cc",
"engine/flutter/fml/paths.cc",
"engine/flutter/fml/synchronization/count_down_latch.cc",
"engine/flutter/fml/synchronization/semaphore.cc",
"engine/flutter/fml/synchronization/waitable_event.cc",
"engine/flutter/fml/task_runner.cc",
"engine/flutter/fml/thread.cc",
"engine/flutter/fml/thread_local.cc",
"engine/flutter/fml/time/time_point.cc",
"engine/flutter/fml/trace_event.cc",
"engine/flutter/fml/unique_fd.cc",
]
if (use_mingw_win) {
defines += [ "UNICODE" ]
cflags_cc = [
"-Wno-macro-redefined",
"-Wno-missing-braces",
]
sources += [
"engine/flutter/fml/platform/win/errors_win.cc",
"engine/flutter/fml/platform/win/file_win.cc",
"engine/flutter/fml/platform/win/mapping_win.cc",
"engine/flutter/fml/platform/win/message_loop_win.cc",
"engine/flutter/fml/platform/win/native_library_win.cc",
"engine/flutter/fml/platform/win/paths_win.cc",
]
libs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/librpcrt4.a" ]
} else if (use_mac) {
sources += [
"engine/flutter/fml/platform/darwin/cf_utils.cc",
"engine/flutter/fml/platform/darwin/message_loop_darwin.mm",
"engine/flutter/fml/platform/darwin/paths_darwin.mm",
"engine/flutter/fml/platform/darwin/platform_version.mm",
"engine/flutter/fml/platform/darwin/scoped_block.mm",
"engine/flutter/fml/platform/darwin/scoped_nsobject.mm",
"engine/flutter/fml/platform/darwin/string_range_sanitization.mm",
"engine/flutter/fml/platform/posix/file_posix.cc",
"engine/flutter/fml/platform/posix/mapping_posix.cc",
"engine/flutter/fml/platform/posix/native_library_posix.cc",
"engine/flutter/fml/platform/posix/paths_posix.cc",
"engine/flutter/fml/platform/posix/shared_mutex_posix.cc",
]
public_configs = [ ":flutter_engine_fml_mac_config" ]
libs = [
"CoreFoundation.framework",
"Foundation.framework",
]
} else {
sources += [
"engine/flutter/fml/platform/linux/paths_linux.cc",
"engine/flutter/fml/platform/linux/timerfd.cc",
"engine/flutter/fml/platform/posix/file_posix.cc",
"engine/flutter/fml/platform/posix/mapping_posix.cc",
"engine/flutter/fml/platform/posix/native_library_posix.cc",
"engine/flutter/fml/platform/posix/paths_posix.cc",
]
if (is_standard_system) {
sources += [ "engine/flutter/fml/platform/linux/message_loop_linux.cc" ]
}
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
}
}
flutter_engine_fml("flutter_engine_fml_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
flutter_engine_fml("flutter_engine_fml_windows") {
defines = ace_windows_defines
platform = "windows"
}
flutter_engine_fml("flutter_engine_fml_mac") {
defines = ace_mac_defines
platform = "mac"
}
template("flutter_engine_common") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [ ":flutter_config" ]
defines += invoker.defines
sources = [
"engine/flutter/common/settings.cc",
"engine/flutter/common/task_runners.cc",
]
deps = [ ":flutter_engine_fml_$platform" ]
if (use_mac) {
cflags_cc = [ "-Wno-thread-safety-attributes" ]
}
}
}
flutter_engine_common("flutter_engine_common_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
flutter_engine_common("flutter_engine_common_windows") {
defines = ace_windows_defines
platform = "windows"
}
flutter_engine_common("flutter_engine_common_mac") {
defines = ace_mac_defines
platform = "mac"
}
template("flutter_engine_flow") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
defines += invoker.defines
configs = [ ":flutter_config" ]
if (use_mac) {
cflags = [ "-Wno-thread-safety-attributes" ]
}
sources = [
"engine/flutter/flow/compositor_context.cc",
"engine/flutter/flow/debug_print.cc",
"engine/flutter/flow/embedded_views.cc",
"engine/flutter/flow/instrumentation.cc",
"engine/flutter/flow/layers/backdrop_filter_layer.cc",
"engine/flutter/flow/layers/clip_path_layer.cc",
"engine/flutter/flow/layers/clip_rect_layer.cc",
"engine/flutter/flow/layers/clip_rrect_layer.cc",
"engine/flutter/flow/layers/color_filter_layer.cc",
"engine/flutter/flow/layers/container_layer.cc",
"engine/flutter/flow/layers/filter_layer.cc",
"engine/flutter/flow/layers/layer.cc",
"engine/flutter/flow/layers/layer_tree.cc",
"engine/flutter/flow/layers/mask_layer.cc",
"engine/flutter/flow/layers/opacity_layer.cc",
"engine/flutter/flow/layers/performance_overlay_layer.cc",
"engine/flutter/flow/layers/physical_shape_layer.cc",
"engine/flutter/flow/layers/picture_layer.cc",
"engine/flutter/flow/layers/platform_view_layer.cc",
"engine/flutter/flow/layers/shader_mask_layer.cc",
"engine/flutter/flow/layers/texture_layer.cc",
"engine/flutter/flow/layers/transform_layer.cc",
"engine/flutter/flow/matrix_decomposition.cc",
"engine/flutter/flow/paint_utils.cc",
"engine/flutter/flow/raster_cache.cc",
"engine/flutter/flow/raster_cache_key.cc",
"engine/flutter/flow/skia_gpu_object.cc",
"engine/flutter/flow/texture.cc",
]
deps = [
":ace_skia_$platform",
":flutter_engine_fml_$platform",
]
}
}
flutter_engine_flow("flutter_engine_flow_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
flutter_engine_flow("flutter_engine_flow_windows") {
defines = ace_windows_defines
platform = "windows"
}
flutter_engine_flow("flutter_engine_flow_mac") {
defines = ace_mac_defines
platform = "mac"
}
template("flutter_engine_shell") {
# get is_ohos_platform
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
defines += invoker.defines
configs = [
":flutter_config",
":icu_config_$platform",
]
sources = [
"engine/flutter/shell/common/animator.cc",
"engine/flutter/shell/common/persistent_cache.cc",
"engine/flutter/shell/common/pipeline.cc",
"engine/flutter/shell/common/rasterizer.cc",
"engine/flutter/shell/common/shell_io_manager.cc",
"engine/flutter/shell/common/surface.cc",
"engine/flutter/shell/common/thread_host.cc",
"engine/flutter/shell/common/vsync_waiter.cc",
"engine/flutter/shell/common/vsync_waiter_fallback.cc",
# only support gl and software
"engine/flutter/shell/gpu/gpu_surface_gl.cc",
"engine/flutter/shell/gpu/gpu_surface_gl_delegate.cc",
"engine/flutter/shell/gpu/gpu_surface_software.cc",
"engine/flutter/shell/gpu/gpu_surface_software_delegate.cc",
"engine/flutter/shell/version/version.cc",
# Ability Cross-platform Environment(ACE) override implementation
"engine/flutter/runtime/ace_runtime_controller.cc",
"engine/flutter/runtime/window_manager.cc",
"engine/flutter/shell/common/ace_engine.cc",
"engine/flutter/shell/common/ace_platform_view.cc",
"engine/flutter/shell/common/ace_run_configuration.cc",
"engine/flutter/shell/common/ace_shell.cc",
]
defines += [
"FLUTTER_ENGINE_VERSION=\"cc88fa45dbf4c55bc23cecea17fb90f43bccf588\"",
"SKIA_VERSION=\"4b567cd679ab964b5f6281a67a96c694c950f597\"",
"DART_VERSION=\"fake version\"",
]
deps = [
":ace_skia_$platform",
":flutter_engine_fml_$platform",
]
if (use_mingw_win || use_mac) {
defines += [ "UNICODE" ]
} else if (is_standard_system) {
include_dirs = [ "//utils/native/base/include" ]
deps += [ "//foundation/graphic/standard:libwmclient" ]
sources += [
"engine/flutter/shell/platform/ohos/ohos_shell_holder.cc",
"engine/flutter/shell/platform/ohos/ohos_surface_software.cc",
"engine/flutter/shell/platform/ohos/platform_task_runner_adapter.cc",
"engine/flutter/shell/platform/ohos/platform_view_ohos.cc",
]
external_deps = [
"appexecfwk_standard:libeventhandler",
"ipc:ipc_core",
]
}
if (is_ohos_platform) {
if (!enable_native_view) {
sources += [
# Ability Cross-platform Environment(ACE) override implementation for ohos platform
"engine/flutter/shell/platform/ohos/ace_vsync_waiter_embedder.cc",
]
if (is_standard_system) {
deps += [ "//foundation/graphic/standard:libvsync_client" ]
external_deps += [ "appexecfwk_standard:libeventhandler" ]
}
}
}
}
}
flutter_engine_shell("flutter_engine_shell_ohos") {
defines = ace_ohos_defines
is_ohos_platform = true
platform = "ohos"
}
flutter_engine_shell("flutter_engine_shell_windows") {
defines = ace_windows_defines
is_ohos_platform = false
platform = "windows"
}
flutter_engine_shell("flutter_engine_shell_mac") {
defines = ace_mac_defines
is_ohos_platform = false
platform = "mac"
}
ohos_source_set("flutter_engine_asset_manager") {
sources = [
"engine/flutter/assets/asset_manager.cc",
"engine/flutter/assets/directory_asset_bundle.cc",
]
configs = [ ":flutter_config" ]
}
template("flutter_engine_lib_ui") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
defines += invoker.defines
configs = [
":flutter_config",
":icu_config_$platform",
]
sources = [
"engine/flutter/lib/ui/compositing/scene.cc",
"engine/flutter/lib/ui/compositing/scene_builder.cc",
"engine/flutter/lib/ui/painting/canvas.cc",
"engine/flutter/lib/ui/painting/color_filter.cc",
"engine/flutter/lib/ui/painting/engine_layer.cc",
"engine/flutter/lib/ui/painting/gradient.cc",
"engine/flutter/lib/ui/painting/image.cc",
"engine/flutter/lib/ui/painting/image_filter.cc",
"engine/flutter/lib/ui/painting/matrix.cc",
"engine/flutter/lib/ui/painting/path.cc",
"engine/flutter/lib/ui/painting/picture_recorder.cc",
"engine/flutter/lib/ui/painting/shader.cc",
"engine/flutter/lib/ui/painting/vertices.cc",
"engine/flutter/lib/ui/window/platform_message.cc",
"engine/flutter/lib/ui/window/platform_message_response.cc",
"engine/flutter/lib/ui/window/pointer_data_packet.cc",
"engine/flutter/lib/ui/window/viewport_metrics.cc",
# Ability Cross-platform Environment(ACE) override implementation
"engine/flutter/lib/ui/painting/image_encoding.cc",
"engine/flutter/lib/ui/painting/paint.cc",
"engine/flutter/lib/ui/painting/picture.cc",
"engine/flutter/lib/ui/text/font_collection.cc",
"engine/flutter/lib/ui/text/text_box.cc",
"engine/flutter/lib/ui/ui_dart_state.cc",
"engine/flutter/lib/ui/window/window.cc",
]
deps = [
":ace_skia_$platform",
":flutter_engine_asset_manager",
":flutter_engine_fml_$platform",
]
if (use_mingw_win) {
defines += [ "_USE_MATH_DEFINES" ]
sources += [ "engine/flutter/lib/ui/window/pointer_data.cc" ]
} else if (use_mac) {
sources += [ "engine/flutter/lib/ui/window/pointer_data.cc" ]
}
}
}
flutter_engine_lib_ui("flutter_engine_lib_ui_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
flutter_engine_lib_ui("flutter_engine_lib_ui_windows") {
defines = ace_windows_defines
platform = "windows"
}
flutter_engine_lib_ui("flutter_engine_lib_ui_mac") {
defines = ace_mac_defines
platform = "mac"
}
config("thirdparty_lib_txt_config") {
cflags_cc = [
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
}
template("thirdparty_lib_txt") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
defines += invoker.defines
configs = [
":flutter_config",
":icu_config_$platform",
":thirdparty_lib_txt_config",
]
sources = [
"engine/flutter/third_party/txt/src/log/log.cc",
"engine/flutter/third_party/txt/src/minikin/CmapCoverage.cpp",
"engine/flutter/third_party/txt/src/minikin/Emoji.cpp",
"engine/flutter/third_party/txt/src/minikin/FontCollection.cpp",
"engine/flutter/third_party/txt/src/minikin/FontFamily.cpp",
"engine/flutter/third_party/txt/src/minikin/FontLanguage.cpp",
"engine/flutter/third_party/txt/src/minikin/FontLanguageListCache.cpp",
"engine/flutter/third_party/txt/src/minikin/FontUtils.cpp",
"engine/flutter/third_party/txt/src/minikin/GraphemeBreak.cpp",
"engine/flutter/third_party/txt/src/minikin/HbFontCache.cpp",
"engine/flutter/third_party/txt/src/minikin/Hyphenator.cpp",
"engine/flutter/third_party/txt/src/minikin/Layout.cpp",
"engine/flutter/third_party/txt/src/minikin/LayoutUtils.cpp",
"engine/flutter/third_party/txt/src/minikin/LineBreaker.cpp",
"engine/flutter/third_party/txt/src/minikin/Measurement.cpp",
"engine/flutter/third_party/txt/src/minikin/MinikinFont.cpp",
"engine/flutter/third_party/txt/src/minikin/MinikinInternal.cpp",
"engine/flutter/third_party/txt/src/minikin/SparseBitSet.cpp",
"engine/flutter/third_party/txt/src/minikin/WordBreaker.cpp",
"engine/flutter/third_party/txt/src/txt/asset_font_manager.cc",
"engine/flutter/third_party/txt/src/txt/font_asset_provider.cc",
"engine/flutter/third_party/txt/src/txt/font_collection.cc",
"engine/flutter/third_party/txt/src/txt/font_features.cc",
"engine/flutter/third_party/txt/src/txt/font_skia.cc",
"engine/flutter/third_party/txt/src/txt/paint_record.cc",
"engine/flutter/third_party/txt/src/txt/paragraph_builder.cc",
"engine/flutter/third_party/txt/src/txt/paragraph_builder_txt.cc",
"engine/flutter/third_party/txt/src/txt/paragraph_style.cc",
"engine/flutter/third_party/txt/src/txt/paragraph_txt.cc",
"engine/flutter/third_party/txt/src/txt/placeholder_run.cc",
"engine/flutter/third_party/txt/src/txt/styled_runs.cc",
"engine/flutter/third_party/txt/src/txt/test_font_manager.cc",
"engine/flutter/third_party/txt/src/txt/text_decoration.cc",
"engine/flutter/third_party/txt/src/txt/text_shadow.cc",
"engine/flutter/third_party/txt/src/txt/text_style.cc",
"engine/flutter/third_party/txt/src/txt/typeface_font_asset_provider.cc",
"engine/flutter/third_party/txt/src/utils/JenkinsHash.cpp",
]
deps = [
":ace_skia_$platform",
":flutter_engine_fml_$platform",
]
if (is_ohos_platform) {
sources += [ "engine/flutter/third_party/txt/src/txt/platform_ohos.cc" ]
} else if (use_mingw_win) {
sources += [ "engine/flutter/third_party/txt/src/txt/platform.cc" ]
} else if (use_mac) {
sources += [ "engine/flutter/third_party/txt/src/txt/platform_mac.mm" ]
}
}
}
thirdparty_lib_txt("thirdparty_lib_txt_ohos") {
defines = ace_ohos_defines
platform = "ohos"
is_ohos_platform = true
}
thirdparty_lib_txt("thirdparty_lib_txt_windows") {
defines = ace_windows_defines
platform = "windows"
is_ohos_platform = false
}
thirdparty_lib_txt("thirdparty_lib_txt_mac") {
defines = ace_mac_defines
platform = "mac"
is_ohos_platform = false
}
# ------------------------------------------------
# Main block begin of Ability Cross-platform Environment(ACE) Preview
# ------------------------------------------------
config("flutter_glfw_config") {
visibility = [ ":*" ]
include_dirs = [
"engine/flutter/shell/platform/common/cpp/public",
"engine/flutter/shell/platform/glfw/public",
]
}
ohos_source_set("flutter_platform_common_client_wrapper") {
sources = [
"engine/flutter/shell/platform/common/cpp/client_wrapper/engine_method_result.cc",
"engine/flutter/shell/platform/common/cpp/client_wrapper/standard_codec.cc",
]
public = [
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/basic_message_channel.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/engine_method_result.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/message_codec.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_call.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_channel.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_codec.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_result.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_message_codec.h",
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_method_codec.h",
]
defines = [ "FLUTTER_DESKTOP_LIBRARY" ]
}
template("flutter_embedder_with_symbol_prefix") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
defines += invoker.defines
defines += [
"FLUTTER_API_SYMBOL_PREFIX=Embedder",
"NOGDI",
]
configs = [
":flutter_config",
":icu_config_$platform",
]
sources = [
# Ability Cross-platform Environment(ACE) override
"engine/flutter/shell/platform/embedder/ace_embedder.cc",
"engine/flutter/shell/platform/embedder/ace_embedder_engine.cc",
"engine/flutter/shell/platform/embedder/ace_platform_view_embedder.cc",
"engine/flutter/shell/platform/embedder/embedder_external_texture_gl.cc",
"engine/flutter/shell/platform/embedder/embedder_external_view_embedder.cc",
"engine/flutter/shell/platform/embedder/embedder_platform_message_response.cc",
"engine/flutter/shell/platform/embedder/embedder_render_target.cc",
"engine/flutter/shell/platform/embedder/embedder_surface.cc",
"engine/flutter/shell/platform/embedder/embedder_surface_gl.cc",
"engine/flutter/shell/platform/embedder/embedder_surface_software.cc",
"engine/flutter/shell/platform/embedder/embedder_task_runner.cc",
"engine/flutter/shell/platform/embedder/embedder_thread_host.cc",
"engine/flutter/shell/platform/embedder/vsync_waiter_embedder.cc",
]
deps = [
":ace_skia_$platform",
":flutter_engine_asset_manager",
":flutter_engine_common_$platform",
":flutter_engine_flow_$platform",
":flutter_engine_fml_$platform",
":flutter_engine_lib_ui_$platform",
":flutter_engine_shell_$platform",
":thirdparty_lib_txt_$platform",
]
public_configs = [ ":flutter_config" ]
}
}
flutter_embedder_with_symbol_prefix(
"flutter_embedder_with_symbol_prefix_windows") {
defines = ace_windows_defines
platform = "windows"
}
flutter_embedder_with_symbol_prefix("flutter_embedder_with_symbol_prefix_mac") {
defines = ace_mac_defines
platform = "mac"
}
template("flutter_platform_glfw") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
defines += invoker.defines
defines += [ "FLUTTER_DESKTOP_LIBRARY" ]
configs = [ ":flutter_config" ]
sources = [
"engine/flutter/shell/platform/glfw/glfw_event_loop.cc",
# Ability Cross-platform Environment(ACE) override
"engine/flutter/shell/platform/glfw/flutter_glfw.cc",
]
# GLFW client wrapper build
public = [ "engine/flutter/shell/platform/glfw/client_wrapper/include/flutter/flutter_window.h" ]
include_dirs = [
"engine/flutter/shell/platform/common/cpp/client_wrapper/include/flutter",
"engine/flutter/shell/platform/common/cpp/public",
]
deps = [
":flutter_embedder_with_symbol_prefix_$platform",
":flutter_platform_common_client_wrapper",
# "//third_party/glfw:glfw_$platform",
]
}
}
flutter_platform_glfw("flutter_glfw_preview_windows") {
defines = ace_windows_defines
platform = "windows"
}
flutter_platform_glfw("flutter_glfw_preview_mac") {
defines = ace_mac_defines
platform = "mac"
}
# ------------------------------------------------
# Main block end of Ability Cross-platform Environment(ACE) Preview
# ------------------------------------------------
config("icu_config_ohos") {
visibility = [ ":*" ]
include_dirs = flutter_external_icu_include_dirs
}
config("icu_config_windows") {
visibility = [ ":*" ]
include_dirs = flutter_internal_icu_include_dirs
}
config("icu_config_mac") {
visibility = [ ":*" ]
include_dirs = flutter_internal_icu_include_dirs
}
config("icu_compile_flags") {
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-O3",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
"-Os",
]
if (use_mingw_win) {
cflags_cc += [ "-DWINVER=0x0601" ]
}
}
template("ace_libicu") {
# get is_ohos_platform flag.
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [
":icu_config_$platform",
":icu_compile_flags",
]
defines += invoker.defines
if (use_mingw_win || use_mac) {
configs += [ "//build/config/compiler:rtti" ]
}
if (is_ohos_platform) {
if (is_wearable_product) {
deps = [
"//third_party/icu/icu4c:static_icui18n",
"//third_party/icu/icu4c:static_icuuc",
]
} else {
deps = [
"//third_party/icu/icu4c:shared_icui18n",
"//third_party/icu/icu4c:shared_icuuc",
]
}
} else {
deps = [ ":ace_icu_make_data_assembly" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"$root_out_dir/ace_icu/icudtl_dat.S",
"skia/third_party/externals/icu/source/common/appendable.cpp",
"skia/third_party/externals/icu/source/common/bmpset.cpp",
"skia/third_party/externals/icu/source/common/brkeng.cpp",
"skia/third_party/externals/icu/source/common/brkiter.cpp",
"skia/third_party/externals/icu/source/common/bytesinkutil.cpp",
"skia/third_party/externals/icu/source/common/bytestream.cpp",
"skia/third_party/externals/icu/source/common/bytestrie.cpp",
"skia/third_party/externals/icu/source/common/bytestriebuilder.cpp",
"skia/third_party/externals/icu/source/common/bytestrieiterator.cpp",
"skia/third_party/externals/icu/source/common/caniter.cpp",
"skia/third_party/externals/icu/source/common/characterproperties.cpp",
"skia/third_party/externals/icu/source/common/chariter.cpp",
"skia/third_party/externals/icu/source/common/charstr.cpp",
"skia/third_party/externals/icu/source/common/cmemory.cpp",
"skia/third_party/externals/icu/source/common/cstr.cpp",
"skia/third_party/externals/icu/source/common/cstring.cpp",
"skia/third_party/externals/icu/source/common/cwchar.cpp",
"skia/third_party/externals/icu/source/common/dictbe.cpp",
"skia/third_party/externals/icu/source/common/dictionarydata.cpp",
"skia/third_party/externals/icu/source/common/dtintrv.cpp",
"skia/third_party/externals/icu/source/common/edits.cpp",
"skia/third_party/externals/icu/source/common/errorcode.cpp",
"skia/third_party/externals/icu/source/common/filteredbrk.cpp",
"skia/third_party/externals/icu/source/common/filterednormalizer2.cpp",
"skia/third_party/externals/icu/source/common/icudataver.cpp",
"skia/third_party/externals/icu/source/common/icuplug.cpp",
"skia/third_party/externals/icu/source/common/loadednormalizer2impl.cpp",
"skia/third_party/externals/icu/source/common/locavailable.cpp",
"skia/third_party/externals/icu/source/common/locbased.cpp",
"skia/third_party/externals/icu/source/common/locdispnames.cpp",
"skia/third_party/externals/icu/source/common/locdspnm.cpp",
"skia/third_party/externals/icu/source/common/locid.cpp",
"skia/third_party/externals/icu/source/common/loclikely.cpp",
"skia/third_party/externals/icu/source/common/locmap.cpp",
"skia/third_party/externals/icu/source/common/locresdata.cpp",
"skia/third_party/externals/icu/source/common/locutil.cpp",
"skia/third_party/externals/icu/source/common/messagepattern.cpp",
"skia/third_party/externals/icu/source/common/normalizer2.cpp",
"skia/third_party/externals/icu/source/common/normalizer2impl.cpp",
"skia/third_party/externals/icu/source/common/normlzr.cpp",
"skia/third_party/externals/icu/source/common/parsepos.cpp",
"skia/third_party/externals/icu/source/common/patternprops.cpp",
"skia/third_party/externals/icu/source/common/pluralmap.cpp",
"skia/third_party/externals/icu/source/common/propname.cpp",
"skia/third_party/externals/icu/source/common/propsvec.cpp",
"skia/third_party/externals/icu/source/common/punycode.cpp",
"skia/third_party/externals/icu/source/common/putil.cpp",
"skia/third_party/externals/icu/source/common/rbbi.cpp",
"skia/third_party/externals/icu/source/common/rbbi_cache.cpp",
"skia/third_party/externals/icu/source/common/rbbidata.cpp",
"skia/third_party/externals/icu/source/common/rbbinode.cpp",
"skia/third_party/externals/icu/source/common/rbbirb.cpp",
"skia/third_party/externals/icu/source/common/rbbiscan.cpp",
"skia/third_party/externals/icu/source/common/rbbisetb.cpp",
"skia/third_party/externals/icu/source/common/rbbistbl.cpp",
"skia/third_party/externals/icu/source/common/rbbitblb.cpp",
"skia/third_party/externals/icu/source/common/resbund.cpp",
"skia/third_party/externals/icu/source/common/resbund_cnv.cpp",
"skia/third_party/externals/icu/source/common/resource.cpp",
"skia/third_party/externals/icu/source/common/ruleiter.cpp",
"skia/third_party/externals/icu/source/common/schriter.cpp",
"skia/third_party/externals/icu/source/common/serv.cpp",
"skia/third_party/externals/icu/source/common/servlk.cpp",
"skia/third_party/externals/icu/source/common/servlkf.cpp",
"skia/third_party/externals/icu/source/common/servls.cpp",
"skia/third_party/externals/icu/source/common/servnotf.cpp",
"skia/third_party/externals/icu/source/common/servrbf.cpp",
"skia/third_party/externals/icu/source/common/servslkf.cpp",
"skia/third_party/externals/icu/source/common/sharedobject.cpp",
"skia/third_party/externals/icu/source/common/simpleformatter.cpp",
"skia/third_party/externals/icu/source/common/static_unicode_sets.cpp",
"skia/third_party/externals/icu/source/common/stringpiece.cpp",
"skia/third_party/externals/icu/source/common/stringtriebuilder.cpp",
"skia/third_party/externals/icu/source/common/uarrsort.cpp",
"skia/third_party/externals/icu/source/common/ubidi.cpp",
"skia/third_party/externals/icu/source/common/ubidi_props.cpp",
"skia/third_party/externals/icu/source/common/ubidiln.cpp",
"skia/third_party/externals/icu/source/common/ubiditransform.cpp",
"skia/third_party/externals/icu/source/common/ubidiwrt.cpp",
"skia/third_party/externals/icu/source/common/ubrk.cpp",
"skia/third_party/externals/icu/source/common/ucase.cpp",
"skia/third_party/externals/icu/source/common/ucasemap.cpp",
"skia/third_party/externals/icu/source/common/ucasemap_titlecase_brkiter.cpp",
"skia/third_party/externals/icu/source/common/ucat.cpp",
"skia/third_party/externals/icu/source/common/uchar.cpp",
"skia/third_party/externals/icu/source/common/ucharstrie.cpp",
"skia/third_party/externals/icu/source/common/ucharstriebuilder.cpp",
"skia/third_party/externals/icu/source/common/ucharstrieiterator.cpp",
"skia/third_party/externals/icu/source/common/uchriter.cpp",
"skia/third_party/externals/icu/source/common/ucln_cmn.cpp",
"skia/third_party/externals/icu/source/common/ucmndata.cpp",
"skia/third_party/externals/icu/source/common/ucnv.cpp",
"skia/third_party/externals/icu/source/common/ucnv2022.cpp",
"skia/third_party/externals/icu/source/common/ucnv_bld.cpp",
"skia/third_party/externals/icu/source/common/ucnv_cb.cpp",
"skia/third_party/externals/icu/source/common/ucnv_cnv.cpp",
"skia/third_party/externals/icu/source/common/ucnv_ct.cpp",
"skia/third_party/externals/icu/source/common/ucnv_err.cpp",
"skia/third_party/externals/icu/source/common/ucnv_ext.cpp",
"skia/third_party/externals/icu/source/common/ucnv_io.cpp",
"skia/third_party/externals/icu/source/common/ucnv_lmb.cpp",
"skia/third_party/externals/icu/source/common/ucnv_set.cpp",
"skia/third_party/externals/icu/source/common/ucnv_u16.cpp",
"skia/third_party/externals/icu/source/common/ucnv_u32.cpp",
"skia/third_party/externals/icu/source/common/ucnv_u7.cpp",
"skia/third_party/externals/icu/source/common/ucnv_u8.cpp",
"skia/third_party/externals/icu/source/common/ucnvbocu.cpp",
"skia/third_party/externals/icu/source/common/ucnvdisp.cpp",
"skia/third_party/externals/icu/source/common/ucnvhz.cpp",
"skia/third_party/externals/icu/source/common/ucnvisci.cpp",
"skia/third_party/externals/icu/source/common/ucnvlat1.cpp",
"skia/third_party/externals/icu/source/common/ucnvmbcs.cpp",
"skia/third_party/externals/icu/source/common/ucnvscsu.cpp",
"skia/third_party/externals/icu/source/common/ucnvsel.cpp",
"skia/third_party/externals/icu/source/common/ucol_swp.cpp",
"skia/third_party/externals/icu/source/common/ucptrie.cpp",
"skia/third_party/externals/icu/source/common/ucurr.cpp",
"skia/third_party/externals/icu/source/common/udata.cpp",
"skia/third_party/externals/icu/source/common/udatamem.cpp",
"skia/third_party/externals/icu/source/common/udataswp.cpp",
"skia/third_party/externals/icu/source/common/uenum.cpp",
"skia/third_party/externals/icu/source/common/uhash.cpp",
"skia/third_party/externals/icu/source/common/uhash_us.cpp",
"skia/third_party/externals/icu/source/common/uidna.cpp",
"skia/third_party/externals/icu/source/common/uinit.cpp",
"skia/third_party/externals/icu/source/common/uinvchar.cpp",
"skia/third_party/externals/icu/source/common/uiter.cpp",
"skia/third_party/externals/icu/source/common/ulist.cpp",
"skia/third_party/externals/icu/source/common/uloc.cpp",
"skia/third_party/externals/icu/source/common/uloc_keytype.cpp",
"skia/third_party/externals/icu/source/common/uloc_tag.cpp",
"skia/third_party/externals/icu/source/common/umapfile.cpp",
"skia/third_party/externals/icu/source/common/umath.cpp",
"skia/third_party/externals/icu/source/common/umutablecptrie.cpp",
"skia/third_party/externals/icu/source/common/umutex.cpp",
"skia/third_party/externals/icu/source/common/unames.cpp",
"skia/third_party/externals/icu/source/common/unifiedcache.cpp",
"skia/third_party/externals/icu/source/common/unifilt.cpp",
"skia/third_party/externals/icu/source/common/unifunct.cpp",
"skia/third_party/externals/icu/source/common/uniset.cpp",
"skia/third_party/externals/icu/source/common/uniset_closure.cpp",
"skia/third_party/externals/icu/source/common/uniset_props.cpp",
"skia/third_party/externals/icu/source/common/unisetspan.cpp",
"skia/third_party/externals/icu/source/common/unistr.cpp",
"skia/third_party/externals/icu/source/common/unistr_case.cpp",
"skia/third_party/externals/icu/source/common/unistr_case_locale.cpp",
"skia/third_party/externals/icu/source/common/unistr_cnv.cpp",
"skia/third_party/externals/icu/source/common/unistr_props.cpp",
"skia/third_party/externals/icu/source/common/unistr_titlecase_brkiter.cpp",
"skia/third_party/externals/icu/source/common/unorm.cpp",
"skia/third_party/externals/icu/source/common/unormcmp.cpp",
"skia/third_party/externals/icu/source/common/uobject.cpp",
"skia/third_party/externals/icu/source/common/uprops.cpp",
"skia/third_party/externals/icu/source/common/ures_cnv.cpp",
"skia/third_party/externals/icu/source/common/uresbund.cpp",
"skia/third_party/externals/icu/source/common/uresdata.cpp",
"skia/third_party/externals/icu/source/common/usc_impl.cpp",
"skia/third_party/externals/icu/source/common/uscript.cpp",
"skia/third_party/externals/icu/source/common/uscript_props.cpp",
"skia/third_party/externals/icu/source/common/uset.cpp",
"skia/third_party/externals/icu/source/common/uset_props.cpp",
"skia/third_party/externals/icu/source/common/usetiter.cpp",
"skia/third_party/externals/icu/source/common/ushape.cpp",
"skia/third_party/externals/icu/source/common/usprep.cpp",
"skia/third_party/externals/icu/source/common/ustack.cpp",
"skia/third_party/externals/icu/source/common/ustr_cnv.cpp",
"skia/third_party/externals/icu/source/common/ustr_titlecase_brkiter.cpp",
"skia/third_party/externals/icu/source/common/ustr_wcs.cpp",
"skia/third_party/externals/icu/source/common/ustrcase.cpp",
"skia/third_party/externals/icu/source/common/ustrcase_locale.cpp",
"skia/third_party/externals/icu/source/common/ustrenum.cpp",
"skia/third_party/externals/icu/source/common/ustrfmt.cpp",
"skia/third_party/externals/icu/source/common/ustring.cpp",
"skia/third_party/externals/icu/source/common/ustrtrns.cpp",
"skia/third_party/externals/icu/source/common/utext.cpp",
"skia/third_party/externals/icu/source/common/utf_impl.cpp",
"skia/third_party/externals/icu/source/common/util.cpp",
"skia/third_party/externals/icu/source/common/util_props.cpp",
"skia/third_party/externals/icu/source/common/utrace.cpp",
"skia/third_party/externals/icu/source/common/utrie.cpp",
"skia/third_party/externals/icu/source/common/utrie2.cpp",
"skia/third_party/externals/icu/source/common/utrie2_builder.cpp",
"skia/third_party/externals/icu/source/common/utrie_swap.cpp",
"skia/third_party/externals/icu/source/common/uts46.cpp",
"skia/third_party/externals/icu/source/common/utypes.cpp",
"skia/third_party/externals/icu/source/common/uvector.cpp",
"skia/third_party/externals/icu/source/common/uvectr32.cpp",
"skia/third_party/externals/icu/source/common/uvectr64.cpp",
"skia/third_party/externals/icu/source/common/wintz.cpp",
"skia/third_party/externals/icu/source/i18n/alphaindex.cpp",
"skia/third_party/externals/icu/source/i18n/anytrans.cpp",
"skia/third_party/externals/icu/source/i18n/astro.cpp",
"skia/third_party/externals/icu/source/i18n/basictz.cpp",
"skia/third_party/externals/icu/source/i18n/bocsu.cpp",
"skia/third_party/externals/icu/source/i18n/brktrans.cpp",
"skia/third_party/externals/icu/source/i18n/buddhcal.cpp",
"skia/third_party/externals/icu/source/i18n/calendar.cpp",
"skia/third_party/externals/icu/source/i18n/casetrn.cpp",
"skia/third_party/externals/icu/source/i18n/cecal.cpp",
"skia/third_party/externals/icu/source/i18n/chnsecal.cpp",
"skia/third_party/externals/icu/source/i18n/choicfmt.cpp",
"skia/third_party/externals/icu/source/i18n/coleitr.cpp",
"skia/third_party/externals/icu/source/i18n/coll.cpp",
"skia/third_party/externals/icu/source/i18n/collation.cpp",
"skia/third_party/externals/icu/source/i18n/collationbuilder.cpp",
"skia/third_party/externals/icu/source/i18n/collationcompare.cpp",
"skia/third_party/externals/icu/source/i18n/collationdata.cpp",
"skia/third_party/externals/icu/source/i18n/collationdatabuilder.cpp",
"skia/third_party/externals/icu/source/i18n/collationdatareader.cpp",
"skia/third_party/externals/icu/source/i18n/collationdatawriter.cpp",
"skia/third_party/externals/icu/source/i18n/collationfastlatin.cpp",
"skia/third_party/externals/icu/source/i18n/collationfastlatinbuilder.cpp",
"skia/third_party/externals/icu/source/i18n/collationfcd.cpp",
"skia/third_party/externals/icu/source/i18n/collationiterator.cpp",
"skia/third_party/externals/icu/source/i18n/collationkeys.cpp",
"skia/third_party/externals/icu/source/i18n/collationroot.cpp",
"skia/third_party/externals/icu/source/i18n/collationrootelements.cpp",
"skia/third_party/externals/icu/source/i18n/collationruleparser.cpp",
"skia/third_party/externals/icu/source/i18n/collationsets.cpp",
"skia/third_party/externals/icu/source/i18n/collationsettings.cpp",
"skia/third_party/externals/icu/source/i18n/collationtailoring.cpp",
"skia/third_party/externals/icu/source/i18n/collationweights.cpp",
"skia/third_party/externals/icu/source/i18n/compactdecimalformat.cpp",
"skia/third_party/externals/icu/source/i18n/coptccal.cpp",
"skia/third_party/externals/icu/source/i18n/cpdtrans.cpp",
"skia/third_party/externals/icu/source/i18n/csdetect.cpp",
"skia/third_party/externals/icu/source/i18n/csmatch.cpp",
"skia/third_party/externals/icu/source/i18n/csr2022.cpp",
"skia/third_party/externals/icu/source/i18n/csrecog.cpp",
"skia/third_party/externals/icu/source/i18n/csrmbcs.cpp",
"skia/third_party/externals/icu/source/i18n/csrsbcs.cpp",
"skia/third_party/externals/icu/source/i18n/csrucode.cpp",
"skia/third_party/externals/icu/source/i18n/csrutf8.cpp",
"skia/third_party/externals/icu/source/i18n/curramt.cpp",
"skia/third_party/externals/icu/source/i18n/currfmt.cpp",
"skia/third_party/externals/icu/source/i18n/currpinf.cpp",
"skia/third_party/externals/icu/source/i18n/currunit.cpp",
"skia/third_party/externals/icu/source/i18n/dangical.cpp",
"skia/third_party/externals/icu/source/i18n/datefmt.cpp",
"skia/third_party/externals/icu/source/i18n/dayperiodrules.cpp",
"skia/third_party/externals/icu/source/i18n/dcfmtsym.cpp",
"skia/third_party/externals/icu/source/i18n/decContext.cpp",
"skia/third_party/externals/icu/source/i18n/decNumber.cpp",
"skia/third_party/externals/icu/source/i18n/decimfmt.cpp",
"skia/third_party/externals/icu/source/i18n/double-conversion-bignum-dtoa.cpp",
"skia/third_party/externals/icu/source/i18n/double-conversion-bignum.cpp",
"skia/third_party/externals/icu/source/i18n/double-conversion-cached-powers.cpp",
"skia/third_party/externals/icu/source/i18n/double-conversion-diy-fp.cpp",
"skia/third_party/externals/icu/source/i18n/double-conversion-fast-dtoa.cpp",
"skia/third_party/externals/icu/source/i18n/double-conversion-strtod.cpp",
"skia/third_party/externals/icu/source/i18n/double-conversion.cpp",
"skia/third_party/externals/icu/source/i18n/dtfmtsym.cpp",
"skia/third_party/externals/icu/source/i18n/dtitvfmt.cpp",
"skia/third_party/externals/icu/source/i18n/dtitvinf.cpp",
"skia/third_party/externals/icu/source/i18n/dtptngen.cpp",
"skia/third_party/externals/icu/source/i18n/dtrule.cpp",
"skia/third_party/externals/icu/source/i18n/erarules.cpp",
"skia/third_party/externals/icu/source/i18n/esctrn.cpp",
"skia/third_party/externals/icu/source/i18n/ethpccal.cpp",
"skia/third_party/externals/icu/source/i18n/fmtable.cpp",
"skia/third_party/externals/icu/source/i18n/fmtable_cnv.cpp",
"skia/third_party/externals/icu/source/i18n/format.cpp",
"skia/third_party/externals/icu/source/i18n/fphdlimp.cpp",
"skia/third_party/externals/icu/source/i18n/fpositer.cpp",
"skia/third_party/externals/icu/source/i18n/funcrepl.cpp",
"skia/third_party/externals/icu/source/i18n/gender.cpp",
"skia/third_party/externals/icu/source/i18n/gregocal.cpp",
"skia/third_party/externals/icu/source/i18n/gregoimp.cpp",
"skia/third_party/externals/icu/source/i18n/hebrwcal.cpp",
"skia/third_party/externals/icu/source/i18n/indiancal.cpp",
"skia/third_party/externals/icu/source/i18n/inputext.cpp",
"skia/third_party/externals/icu/source/i18n/islamcal.cpp",
"skia/third_party/externals/icu/source/i18n/japancal.cpp",
"skia/third_party/externals/icu/source/i18n/listformatter.cpp",
"skia/third_party/externals/icu/source/i18n/measfmt.cpp",
"skia/third_party/externals/icu/source/i18n/measunit.cpp",
"skia/third_party/externals/icu/source/i18n/measure.cpp",
"skia/third_party/externals/icu/source/i18n/msgfmt.cpp",
"skia/third_party/externals/icu/source/i18n/name2uni.cpp",
"skia/third_party/externals/icu/source/i18n/nfrs.cpp",
"skia/third_party/externals/icu/source/i18n/nfrule.cpp",
"skia/third_party/externals/icu/source/i18n/nfsubs.cpp",
"skia/third_party/externals/icu/source/i18n/nortrans.cpp",
"skia/third_party/externals/icu/source/i18n/nounit.cpp",
"skia/third_party/externals/icu/source/i18n/nultrans.cpp",
"skia/third_party/externals/icu/source/i18n/number_affixutils.cpp",
"skia/third_party/externals/icu/source/i18n/number_asformat.cpp",
"skia/third_party/externals/icu/source/i18n/number_capi.cpp",
"skia/third_party/externals/icu/source/i18n/number_compact.cpp",
"skia/third_party/externals/icu/source/i18n/number_currencysymbols.cpp",
"skia/third_party/externals/icu/source/i18n/number_decimalquantity.cpp",
"skia/third_party/externals/icu/source/i18n/number_decimfmtprops.cpp",
"skia/third_party/externals/icu/source/i18n/number_fluent.cpp",
"skia/third_party/externals/icu/source/i18n/number_formatimpl.cpp",
"skia/third_party/externals/icu/source/i18n/number_grouping.cpp",
"skia/third_party/externals/icu/source/i18n/number_integerwidth.cpp",
"skia/third_party/externals/icu/source/i18n/number_longnames.cpp",
"skia/third_party/externals/icu/source/i18n/number_mapper.cpp",
"skia/third_party/externals/icu/source/i18n/number_modifiers.cpp",
"skia/third_party/externals/icu/source/i18n/number_multiplier.cpp",
"skia/third_party/externals/icu/source/i18n/number_notation.cpp",
"skia/third_party/externals/icu/source/i18n/number_padding.cpp",
"skia/third_party/externals/icu/source/i18n/number_patternmodifier.cpp",
"skia/third_party/externals/icu/source/i18n/number_patternstring.cpp",
"skia/third_party/externals/icu/source/i18n/number_rounding.cpp",
"skia/third_party/externals/icu/source/i18n/number_scientific.cpp",
"skia/third_party/externals/icu/source/i18n/number_skeletons.cpp",
"skia/third_party/externals/icu/source/i18n/number_stringbuilder.cpp",
"skia/third_party/externals/icu/source/i18n/number_utils.cpp",
"skia/third_party/externals/icu/source/i18n/numfmt.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_affixes.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_compositions.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_currency.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_decimal.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_impl.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_parsednumber.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_scientific.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_stringsegment.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_symbols.cpp",
"skia/third_party/externals/icu/source/i18n/numparse_validators.cpp",
"skia/third_party/externals/icu/source/i18n/numrange_fluent.cpp",
"skia/third_party/externals/icu/source/i18n/numrange_impl.cpp",
"skia/third_party/externals/icu/source/i18n/numsys.cpp",
"skia/third_party/externals/icu/source/i18n/olsontz.cpp",
"skia/third_party/externals/icu/source/i18n/persncal.cpp",
"skia/third_party/externals/icu/source/i18n/plurfmt.cpp",
"skia/third_party/externals/icu/source/i18n/plurrule.cpp",
"skia/third_party/externals/icu/source/i18n/quant.cpp",
"skia/third_party/externals/icu/source/i18n/quantityformatter.cpp",
"skia/third_party/externals/icu/source/i18n/rbnf.cpp",
"skia/third_party/externals/icu/source/i18n/rbt.cpp",
"skia/third_party/externals/icu/source/i18n/rbt_data.cpp",
"skia/third_party/externals/icu/source/i18n/rbt_pars.cpp",
"skia/third_party/externals/icu/source/i18n/rbt_rule.cpp",
"skia/third_party/externals/icu/source/i18n/rbt_set.cpp",
"skia/third_party/externals/icu/source/i18n/rbtz.cpp",
"skia/third_party/externals/icu/source/i18n/regexcmp.cpp",
"skia/third_party/externals/icu/source/i18n/regeximp.cpp",
"skia/third_party/externals/icu/source/i18n/regexst.cpp",
"skia/third_party/externals/icu/source/i18n/regextxt.cpp",
"skia/third_party/externals/icu/source/i18n/region.cpp",
"skia/third_party/externals/icu/source/i18n/reldatefmt.cpp",
"skia/third_party/externals/icu/source/i18n/reldtfmt.cpp",
"skia/third_party/externals/icu/source/i18n/rematch.cpp",
"skia/third_party/externals/icu/source/i18n/remtrans.cpp",
"skia/third_party/externals/icu/source/i18n/repattrn.cpp",
"skia/third_party/externals/icu/source/i18n/rulebasedcollator.cpp",
"skia/third_party/externals/icu/source/i18n/scientificnumberformatter.cpp",
"skia/third_party/externals/icu/source/i18n/scriptset.cpp",
"skia/third_party/externals/icu/source/i18n/search.cpp",
"skia/third_party/externals/icu/source/i18n/selfmt.cpp",
"skia/third_party/externals/icu/source/i18n/sharedbreakiterator.cpp",
"skia/third_party/externals/icu/source/i18n/simpletz.cpp",
"skia/third_party/externals/icu/source/i18n/smpdtfmt.cpp",
"skia/third_party/externals/icu/source/i18n/smpdtfst.cpp",
"skia/third_party/externals/icu/source/i18n/sortkey.cpp",
"skia/third_party/externals/icu/source/i18n/standardplural.cpp",
"skia/third_party/externals/icu/source/i18n/strmatch.cpp",
"skia/third_party/externals/icu/source/i18n/strrepl.cpp",
"skia/third_party/externals/icu/source/i18n/stsearch.cpp",
"skia/third_party/externals/icu/source/i18n/taiwncal.cpp",
"skia/third_party/externals/icu/source/i18n/timezone.cpp",
"skia/third_party/externals/icu/source/i18n/titletrn.cpp",
"skia/third_party/externals/icu/source/i18n/tmunit.cpp",
"skia/third_party/externals/icu/source/i18n/tmutamt.cpp",
"skia/third_party/externals/icu/source/i18n/tmutfmt.cpp",
"skia/third_party/externals/icu/source/i18n/tolowtrn.cpp",
"skia/third_party/externals/icu/source/i18n/toupptrn.cpp",
"skia/third_party/externals/icu/source/i18n/translit.cpp",
"skia/third_party/externals/icu/source/i18n/transreg.cpp",
"skia/third_party/externals/icu/source/i18n/tridpars.cpp",
"skia/third_party/externals/icu/source/i18n/tzfmt.cpp",
"skia/third_party/externals/icu/source/i18n/tzgnames.cpp",
"skia/third_party/externals/icu/source/i18n/tznames.cpp",
"skia/third_party/externals/icu/source/i18n/tznames_impl.cpp",
"skia/third_party/externals/icu/source/i18n/tzrule.cpp",
"skia/third_party/externals/icu/source/i18n/tztrans.cpp",
"skia/third_party/externals/icu/source/i18n/ucal.cpp",
"skia/third_party/externals/icu/source/i18n/ucln_in.cpp",
"skia/third_party/externals/icu/source/i18n/ucol.cpp",
"skia/third_party/externals/icu/source/i18n/ucol_res.cpp",
"skia/third_party/externals/icu/source/i18n/ucol_sit.cpp",
"skia/third_party/externals/icu/source/i18n/ucoleitr.cpp",
"skia/third_party/externals/icu/source/i18n/ucsdet.cpp",
"skia/third_party/externals/icu/source/i18n/udat.cpp",
"skia/third_party/externals/icu/source/i18n/udateintervalformat.cpp",
"skia/third_party/externals/icu/source/i18n/udatpg.cpp",
"skia/third_party/externals/icu/source/i18n/ufieldpositer.cpp",
"skia/third_party/externals/icu/source/i18n/uitercollationiterator.cpp",
"skia/third_party/externals/icu/source/i18n/ulistformatter.cpp",
"skia/third_party/externals/icu/source/i18n/ulocdata.cpp",
"skia/third_party/externals/icu/source/i18n/umsg.cpp",
"skia/third_party/externals/icu/source/i18n/unesctrn.cpp",
"skia/third_party/externals/icu/source/i18n/uni2name.cpp",
"skia/third_party/externals/icu/source/i18n/unum.cpp",
"skia/third_party/externals/icu/source/i18n/unumsys.cpp",
"skia/third_party/externals/icu/source/i18n/upluralrules.cpp",
"skia/third_party/externals/icu/source/i18n/uregex.cpp",
"skia/third_party/externals/icu/source/i18n/uregexc.cpp",
"skia/third_party/externals/icu/source/i18n/uregion.cpp",
"skia/third_party/externals/icu/source/i18n/usearch.cpp",
"skia/third_party/externals/icu/source/i18n/uspoof.cpp",
"skia/third_party/externals/icu/source/i18n/uspoof_build.cpp",
"skia/third_party/externals/icu/source/i18n/uspoof_conf.cpp",
"skia/third_party/externals/icu/source/i18n/uspoof_impl.cpp",
"skia/third_party/externals/icu/source/i18n/utf16collationiterator.cpp",
"skia/third_party/externals/icu/source/i18n/utf8collationiterator.cpp",
"skia/third_party/externals/icu/source/i18n/utmscale.cpp",
"skia/third_party/externals/icu/source/i18n/utrans.cpp",
"skia/third_party/externals/icu/source/i18n/vtzone.cpp",
"skia/third_party/externals/icu/source/i18n/vzone.cpp",
"skia/third_party/externals/icu/source/i18n/windtfmt.cpp",
"skia/third_party/externals/icu/source/i18n/winnmfmt.cpp",
"skia/third_party/externals/icu/source/i18n/wintzimpl.cpp",
"skia/third_party/externals/icu/source/i18n/zonemeta.cpp",
"skia/third_party/externals/icu/source/i18n/zrule.cpp",
"skia/third_party/externals/icu/source/i18n/ztrans.cpp",
]
if (use_mingw_win) {
defines += [ "U_CHARSET_IS_UTF8=1" ]
}
defines += [
"U_COMMON_IMPLEMENTATION",
"U_STATIC_IMPLEMENTATION",
"U_ENABLE_DYLOAD=0",
"U_I18N_IMPLEMENTATION",
"U_USING_ICU_NAMESPACE=0",
"SK_USING_THIRD_PARTY_ICU",
]
}
}
}
ace_libicu("ace_libicu_ohos") {
defines = ace_ohos_defines
is_ohos_platform = true
platform = "ohos"
}
ace_libicu("ace_libicu_windows") {
defines = ace_windows_defines
is_ohos_platform = false
platform = "windows"
}
ace_libicu("ace_libicu_mac") {
defines = ace_mac_defines
is_ohos_platform = false
platform = "mac"
}
action("ace_icu_make_data_assembly") {
script = "skia/third_party/externals/icu/scripts/make_data_assembly.py"
if (use_mingw_win || use_mac) {
inputs = [ "skia/third_party/externals/icu/common/icudtl.dat" ]
} else {
inputs = [ "skia/third_party/externals/icu/flutter/icudtl.dat" ]
}
outputs = [ "$root_out_dir/ace_icu/icudtl_dat.S" ]
args = [
rebase_path(inputs[0], root_build_dir),
rebase_path(outputs[0], root_build_dir),
]
if (use_mac) {
args += [ "--mac" ]
}
}
config("harfbuzz_config") {
visibility = [ ":*" ]
include_dirs = [ "skia/third_party/externals/harfbuzz/src" ]
defines = [
"HAVE_ICU",
"HAVE_ICU_BUILTIN",
"HAVE_INTEL_ATOMIC_PRIMITIVES",
"HAVE_OT",
]
}
config("skia_config") {
visibility = [ ":*" ]
include_dirs = [
"$third_party_skia_override_path",
"skia",
"$third_party_skia_override_path/third_party/skia",
]
defines = flutter_defines
defines += [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_GL",
"SK_SUPPORT_PDF",
"SK_HAS_JPEG_LIBRARY",
"SK_HAS_HEIF_LIBRARY",
"SK_HAS_PNG_LIBRARY",
"SK_ENABLE_SKSL_INTERPRETER",
"SKVM_JIT",
"SK_HAS_WEBP_LIBRARY",
"SK_XML",
"XML_STATIC",
"XML_POOR_ENTROPY",
"SK_DISABLE_AAA",
"SK_DISABLE_READBUFFER",
"SK_DISABLE_EFFECT_DESERIALIZATION",
"SK_DISABLE_LEGACY_SHADERCONTEXT",
"SK_DISABLE_LOWP_RASTER_PIPELINE",
"SK_FORCE_RASTER_PIPELINE_BLITTER",
]
}
config("ace_skia_opts_config") {
visibility = [ ":*" ]
include_dirs = [ "skia" ]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-march=armv8-a+crc",
"-fstrict-aliasing",
"-O3",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
"-Os",
]
if (target_cpu == "x86_64" || (use_mingw_win || use_mac)) {
cflags -= [ "-march=armv8-a+crc" ]
}
if (use_mac) {
cflags += [
"-march=haswell",
"-mavx",
"-mssse3",
"-msse4.1",
"-msse4.2",
]
}
}
ohos_source_set("ace_skia_opts") {
configs = [ ":ace_skia_opts_config" ]
sources = [ "skia/src/opts/SkOpts_crc32.cpp" ]
if (target_cpu == "x86_64" || (use_mingw_win || use_mac)) {
sources += [
"skia/src/opts/SkOpts_avx.cpp",
"skia/src/opts/SkOpts_hsw.cpp",
]
}
if (use_mingw_win) {
sources -= [ "skia/src/opts/SkOpts_crc32.cpp" ]
sources += [
"skia/src/opts/SkOpts_sse41.cpp",
"skia/src/opts/SkOpts_sse42.cpp",
"skia/src/opts/SkOpts_ssse3.cpp",
]
}
if (use_mac) {
sources -= [ "skia/src/opts/SkOpts_crc32.cpp" ]
sources += [
"skia/src/opts/SkOpts_sse41.cpp",
"skia/src/opts/SkOpts_sse42.cpp",
"skia/src/opts/SkOpts_ssse3.cpp",
]
}
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
]
}
config("ace_skia_core_config") {
visibility = [ ":*" ]
include_dirs = [
"skia",
"//third_party/expat/lib",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
"-Wno-extra-semi",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
"-Wno-extra-semi",
]
if (use_mingw_win) {
cflags += [ "-Wno-used-but-marked-unused" ]
cflags_cc += [ "-Wno-unknown-pragmas" ]
}
}
ohos_source_set("ace_skia_core") {
configs = [
":ace_skia_core_config",
":flutter_config",
]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/src/android/SkAndroidFrameworkUtils.cpp",
"skia/src/android/SkAnimatedImage.cpp",
"skia/src/android/SkBitmapRegionCodec.cpp",
"skia/src/android/SkBitmapRegionDecoder.cpp",
"skia/src/c/sk_effects.cpp",
"skia/src/c/sk_imageinfo.cpp",
"skia/src/c/sk_paint.cpp",
"skia/src/c/sk_surface.cpp",
"skia/src/codec/SkAndroidCodec.cpp",
"skia/src/codec/SkAndroidCodecAdapter.cpp",
"skia/src/codec/SkBmpBaseCodec.cpp",
"skia/src/codec/SkBmpCodec.cpp",
"skia/src/codec/SkBmpMaskCodec.cpp",
"skia/src/codec/SkBmpRLECodec.cpp",
"skia/src/codec/SkBmpStandardCodec.cpp",
"skia/src/codec/SkCodec.cpp",
"skia/src/codec/SkCodecImageGenerator.cpp",
"skia/src/codec/SkColorTable.cpp",
"skia/src/codec/SkEncodedInfo.cpp",
"skia/src/codec/SkMaskSwizzler.cpp",
"skia/src/codec/SkMasks.cpp",
"skia/src/codec/SkSampledCodec.cpp",
"skia/src/codec/SkSampler.cpp",
"skia/src/codec/SkStreamBuffer.cpp",
"skia/src/codec/SkSwizzler.cpp",
"skia/src/codec/SkWbmpCodec.cpp",
"skia/src/core/SkAAClip.cpp",
"skia/src/core/SkATrace.cpp",
"skia/src/core/SkAlphaRuns.cpp",
"skia/src/core/SkAnalyticEdge.cpp",
"skia/src/core/SkAnnotation.cpp",
"skia/src/core/SkArenaAlloc.cpp",
"skia/src/core/SkAutoPixmapStorage.cpp",
"skia/src/core/SkBBHFactory.cpp",
"skia/src/core/SkBigPicture.cpp",
"skia/src/core/SkBitmap.cpp",
"skia/src/core/SkBitmapCache.cpp",
"skia/src/core/SkBitmapController.cpp",
"skia/src/core/SkBitmapDevice.cpp",
"skia/src/core/SkBitmapProcState.cpp",
"skia/src/core/SkBitmapProcState_matrixProcs.cpp",
"skia/src/core/SkBlendMode.cpp",
"skia/src/core/SkBlitRow_D32.cpp",
"skia/src/core/SkBlitter.cpp",
"skia/src/core/SkBlitter_A8.cpp",
"skia/src/core/SkBlitter_ARGB32.cpp",
"skia/src/core/SkBlitter_RGB565.cpp",
"skia/src/core/SkBlitter_Sprite.cpp",
"skia/src/core/SkBlurMF.cpp",
"skia/src/core/SkBlurMask.cpp",
"skia/src/core/SkBuffer.cpp",
"skia/src/core/SkCachedData.cpp",
"skia/src/core/SkCanvas.cpp",
"skia/src/core/SkCanvasPriv.cpp",
"skia/src/core/SkClipStack.cpp",
"skia/src/core/SkClipStackDevice.cpp",
"skia/src/core/SkColor.cpp",
"skia/src/core/SkColorFilter.cpp",
"skia/src/core/SkColorFilter_Matrix.cpp",
"skia/src/core/SkColorSpace.cpp",
"skia/src/core/SkColorSpaceXformSteps.cpp",
"skia/src/core/SkContourMeasure.cpp",
"skia/src/core/SkConvertPixels.cpp",
"skia/src/core/SkCpu.cpp",
"skia/src/core/SkCubicClipper.cpp",
"skia/src/core/SkCubicMap.cpp",
"skia/src/core/SkData.cpp",
"skia/src/core/SkDataTable.cpp",
"skia/src/core/SkDebug.cpp",
"skia/src/core/SkDeferredDisplayList.cpp",
"skia/src/core/SkDeferredDisplayListRecorder.cpp",
"skia/src/core/SkDeque.cpp",
"skia/src/core/SkDescriptor.cpp",
"skia/src/core/SkDevice.cpp",
"skia/src/core/SkDistanceFieldGen.cpp",
"skia/src/core/SkDocument.cpp",
"skia/src/core/SkDraw.cpp",
"skia/src/core/SkDrawLooper.cpp",
"skia/src/core/SkDrawShadowInfo.cpp",
"skia/src/core/SkDraw_atlas.cpp",
"skia/src/core/SkDraw_text.cpp",
"skia/src/core/SkDraw_vertices.cpp",
"skia/src/core/SkDrawable.cpp",
"skia/src/core/SkEdge.cpp",
"skia/src/core/SkEdgeBuilder.cpp",
"skia/src/core/SkEdgeClipper.cpp",
"skia/src/core/SkExecutor.cpp",
"skia/src/core/SkFlattenable.cpp",
"skia/src/core/SkFont.cpp",
"skia/src/core/SkFontDescriptor.cpp",
"skia/src/core/SkFontLCDConfig.cpp",
"skia/src/core/SkFontMgr.cpp",
"skia/src/core/SkFontStream.cpp",
"skia/src/core/SkGaussFilter.cpp",
"skia/src/core/SkGeometry.cpp",
"skia/src/core/SkGlobalInitialization_core.cpp",
"skia/src/core/SkGlyph.cpp",
"skia/src/core/SkGlyphRun.cpp",
"skia/src/core/SkGlyphRunPainter.cpp",
"skia/src/core/SkGpuBlurUtils.cpp",
"skia/src/core/SkGraphics.cpp",
"skia/src/core/SkHalf.cpp",
"skia/src/core/SkICC.cpp",
"skia/src/core/SkImageFilter.cpp",
"skia/src/core/SkImageFilterCache.cpp",
"skia/src/core/SkImageGenerator.cpp",
"skia/src/core/SkImageInfo.cpp",
"skia/src/core/SkLatticeIter.cpp",
"skia/src/core/SkLineClipper.cpp",
"skia/src/core/SkLocalMatrixImageFilter.cpp",
"skia/src/core/SkMD5.cpp",
"skia/src/core/SkMallocPixelRef.cpp",
"skia/src/core/SkMask.cpp",
"skia/src/core/SkMaskBlurFilter.cpp",
"skia/src/core/SkMaskCache.cpp",
"skia/src/core/SkMaskFilter.cpp",
"skia/src/core/SkMaskGamma.cpp",
"skia/src/core/SkMath.cpp",
"skia/src/core/SkMatrix.cpp",
"skia/src/core/SkMatrix44.cpp",
"skia/src/core/SkMatrixImageFilter.cpp",
"skia/src/core/SkMiniRecorder.cpp",
"skia/src/core/SkMipMap.cpp",
"skia/src/core/SkModeColorFilter.cpp",
"skia/src/core/SkMultiPictureDraw.cpp",
"skia/src/core/SkNormalFlatSource.cpp",
"skia/src/core/SkNormalMapSource.cpp",
"skia/src/core/SkNormalSource.cpp",
"skia/src/core/SkOpts.cpp",
"skia/src/core/SkOverdrawCanvas.cpp",
"skia/src/core/SkPaint.cpp",
"skia/src/core/SkPaintPriv.cpp",
"skia/src/core/SkPath.cpp",
"skia/src/core/SkPathEffect.cpp",
"skia/src/core/SkPathMeasure.cpp",
"skia/src/core/SkPathRef.cpp",
"skia/src/core/SkPath_serial.cpp",
"skia/src/core/SkPicture.cpp",
"skia/src/core/SkPictureData.cpp",
"skia/src/core/SkPictureFlat.cpp",
"skia/src/core/SkPictureImageGenerator.cpp",
"skia/src/core/SkPicturePlayback.cpp",
"skia/src/core/SkPictureRecord.cpp",
"skia/src/core/SkPictureRecorder.cpp",
"skia/src/core/SkPixelRef.cpp",
"skia/src/core/SkPixmap.cpp",
"skia/src/core/SkPoint.cpp",
"skia/src/core/SkPoint3.cpp",
"skia/src/core/SkPromiseImageTexture.cpp",
"skia/src/core/SkPtrRecorder.cpp",
"skia/src/core/SkQuadClipper.cpp",
"skia/src/core/SkRRect.cpp",
"skia/src/core/SkRTree.cpp",
"skia/src/core/SkRWBuffer.cpp",
"skia/src/core/SkRasterClip.cpp",
"skia/src/core/SkRasterPipeline.cpp",
"skia/src/core/SkRasterPipelineBlitter.cpp",
"skia/src/core/SkReadBuffer.cpp",
"skia/src/core/SkRecord.cpp",
"skia/src/core/SkRecordDraw.cpp",
"skia/src/core/SkRecordOpts.cpp",
"skia/src/core/SkRecordedDrawable.cpp",
"skia/src/core/SkRecorder.cpp",
"skia/src/core/SkRecords.cpp",
"skia/src/core/SkRect.cpp",
"skia/src/core/SkRegion.cpp",
"skia/src/core/SkRegion_path.cpp",
"skia/src/core/SkRemoteGlyphCache.cpp",
"skia/src/core/SkResourceCache.cpp",
"skia/src/core/SkScalar.cpp",
"skia/src/core/SkScalerContext.cpp",
"skia/src/core/SkScan.cpp",
"skia/src/core/SkScan_AAAPath.cpp",
"skia/src/core/SkScan_AntiPath.cpp",
"skia/src/core/SkScan_Antihair.cpp",
"skia/src/core/SkScan_Hairline.cpp",
"skia/src/core/SkScan_Path.cpp",
"skia/src/core/SkSemaphore.cpp",
"skia/src/core/SkSharedMutex.cpp",
"skia/src/core/SkSpecialImage.cpp",
"skia/src/core/SkSpecialSurface.cpp",
"skia/src/core/SkSpinlock.cpp",
"skia/src/core/SkSpriteBlitter_ARGB32.cpp",
"skia/src/core/SkSpriteBlitter_RGB565.cpp",
"skia/src/core/SkStream.cpp",
"skia/src/core/SkStrike.cpp",
"skia/src/core/SkStrikeCache.cpp",
"skia/src/core/SkStrikeSpec.cpp",
"skia/src/core/SkString.cpp",
"skia/src/core/SkStringUtils.cpp",
"skia/src/core/SkStroke.cpp",
"skia/src/core/SkStrokeRec.cpp",
"skia/src/core/SkStrokerPriv.cpp",
"skia/src/core/SkSurfaceCharacterization.cpp",
"skia/src/core/SkSwizzle.cpp",
"skia/src/core/SkTLS.cpp",
"skia/src/core/SkTSearch.cpp",
"skia/src/core/SkTaskGroup.cpp",
"skia/src/core/SkTextBlob.cpp",
"skia/src/core/SkThreadID.cpp",
"skia/src/core/SkTime.cpp",
"skia/src/core/SkTypeface.cpp",
"skia/src/core/SkTypefaceCache.cpp",
"skia/src/core/SkTypeface_remote.cpp",
"skia/src/core/SkUnPreMultiply.cpp",
"skia/src/core/SkUtils.cpp",
"skia/src/core/SkVM.cpp",
"skia/src/core/SkVMBlitter.cpp",
"skia/src/core/SkVertState.cpp",
"skia/src/core/SkVertices.cpp",
"skia/src/core/SkWriteBuffer.cpp",
"skia/src/core/SkWriter32.cpp",
"skia/src/core/SkXfermode.cpp",
"skia/src/core/SkXfermodeInterpretation.cpp",
"skia/src/core/SkYUVASizeInfo.cpp",
"skia/src/core/SkYUVMath.cpp",
"skia/src/core/SkYUVPlanesCache.cpp",
"skia/src/effects/Sk1DPathEffect.cpp",
"skia/src/effects/Sk2DPathEffect.cpp",
"skia/src/effects/SkColorMatrix.cpp",
"skia/src/effects/SkColorMatrixFilter.cpp",
"skia/src/effects/SkCornerPathEffect.cpp",
"skia/src/effects/SkDashPathEffect.cpp",
"skia/src/effects/SkDiscretePathEffect.cpp",
"skia/src/effects/SkEmbossMask.cpp",
"skia/src/effects/SkEmbossMaskFilter.cpp",
"skia/src/effects/SkHighContrastFilter.cpp",
"skia/src/effects/SkLayerDrawLooper.cpp",
"skia/src/effects/SkLumaColorFilter.cpp",
"skia/src/effects/SkOpPathEffect.cpp",
"skia/src/effects/SkOverdrawColorFilter.cpp",
"skia/src/effects/SkPackBits.cpp",
"skia/src/effects/SkShaderMaskFilter.cpp",
"skia/src/effects/SkTableColorFilter.cpp",
"skia/src/effects/SkTableMaskFilter.cpp",
"skia/src/effects/SkTrimPathEffect.cpp",
"skia/src/effects/imagefilters/SkAlphaThresholdFilter.cpp",
"skia/src/effects/imagefilters/SkArithmeticImageFilter.cpp",
"skia/src/effects/imagefilters/SkBlurImageFilter.cpp",
"skia/src/effects/imagefilters/SkColorFilterImageFilter.cpp",
"skia/src/effects/imagefilters/SkComposeImageFilter.cpp",
"skia/src/effects/imagefilters/SkDisplacementMapEffect.cpp",
"skia/src/effects/imagefilters/SkDropShadowImageFilter.cpp",
"skia/src/effects/imagefilters/SkImageFilters.cpp",
"skia/src/effects/imagefilters/SkImageSource.cpp",
"skia/src/effects/imagefilters/SkLightingImageFilter.cpp",
"skia/src/effects/imagefilters/SkMagnifierImageFilter.cpp",
"skia/src/effects/imagefilters/SkMatrixConvolutionImageFilter.cpp",
"skia/src/effects/imagefilters/SkMergeImageFilter.cpp",
"skia/src/effects/imagefilters/SkMorphologyImageFilter.cpp",
"skia/src/effects/imagefilters/SkOffsetImageFilter.cpp",
"skia/src/effects/imagefilters/SkPaintImageFilter.cpp",
"skia/src/effects/imagefilters/SkPictureImageFilter.cpp",
"skia/src/effects/imagefilters/SkTileImageFilter.cpp",
"skia/src/effects/imagefilters/SkXfermodeImageFilter.cpp",
"skia/src/image/SkImage.cpp",
"skia/src/image/SkImage_Lazy.cpp",
"skia/src/image/SkImage_Raster.cpp",
"skia/src/image/SkSurface.cpp",
"skia/src/image/SkSurface_Raster.cpp",
"skia/src/images/SkImageEncoder.cpp",
"skia/src/lazy/SkDiscardableMemoryPool.cpp",
"skia/src/pathops/SkAddIntersections.cpp",
"skia/src/pathops/SkDConicLineIntersection.cpp",
"skia/src/pathops/SkDCubicLineIntersection.cpp",
"skia/src/pathops/SkDCubicToQuads.cpp",
"skia/src/pathops/SkDLineIntersection.cpp",
"skia/src/pathops/SkDQuadLineIntersection.cpp",
"skia/src/pathops/SkIntersections.cpp",
"skia/src/pathops/SkOpAngle.cpp",
"skia/src/pathops/SkOpBuilder.cpp",
"skia/src/pathops/SkOpCoincidence.cpp",
"skia/src/pathops/SkOpContour.cpp",
"skia/src/pathops/SkOpCubicHull.cpp",
"skia/src/pathops/SkOpEdgeBuilder.cpp",
"skia/src/pathops/SkOpSegment.cpp",
"skia/src/pathops/SkOpSpan.cpp",
"skia/src/pathops/SkPathOpsAsWinding.cpp",
"skia/src/pathops/SkPathOpsCommon.cpp",
"skia/src/pathops/SkPathOpsConic.cpp",
"skia/src/pathops/SkPathOpsCubic.cpp",
"skia/src/pathops/SkPathOpsCurve.cpp",
"skia/src/pathops/SkPathOpsDebug.cpp",
"skia/src/pathops/SkPathOpsLine.cpp",
"skia/src/pathops/SkPathOpsOp.cpp",
"skia/src/pathops/SkPathOpsQuad.cpp",
"skia/src/pathops/SkPathOpsRect.cpp",
"skia/src/pathops/SkPathOpsSimplify.cpp",
"skia/src/pathops/SkPathOpsTSect.cpp",
"skia/src/pathops/SkPathOpsTightBounds.cpp",
"skia/src/pathops/SkPathOpsTypes.cpp",
"skia/src/pathops/SkPathOpsWinding.cpp",
"skia/src/pathops/SkPathWriter.cpp",
"skia/src/pathops/SkReduceOrder.cpp",
"skia/src/ports/SkDiscardableMemory_none.cpp",
"skia/src/ports/SkGlobalInitialization_default.cpp",
"skia/src/ports/SkImageGenerator_skia.cpp",
"skia/src/ports/SkMemory_malloc.cpp",
"skia/src/ports/SkOSFile_posix.cpp",
"skia/src/ports/SkOSFile_stdio.cpp",
"skia/src/ports/SkOSLibrary_posix.cpp",
"skia/src/ports/SkTLS_pthread.cpp",
"skia/src/sfnt/SkOTTable_name.cpp",
"skia/src/sfnt/SkOTUtils.cpp",
"skia/src/shaders/SkBitmapProcShader.cpp",
"skia/src/shaders/SkColorFilterShader.cpp",
"skia/src/shaders/SkColorShader.cpp",
"skia/src/shaders/SkComposeShader.cpp",
"skia/src/shaders/SkImageShader.cpp",
"skia/src/shaders/SkLightingShader.cpp",
"skia/src/shaders/SkLights.cpp",
"skia/src/shaders/SkLocalMatrixShader.cpp",
"skia/src/shaders/SkPerlinNoiseShader.cpp",
"skia/src/shaders/SkPictureShader.cpp",
"skia/src/shaders/SkRTShader.cpp",
"skia/src/shaders/SkShader.cpp",
"skia/src/shaders/gradients/Sk4fGradientBase.cpp",
"skia/src/shaders/gradients/Sk4fLinearGradient.cpp",
"skia/src/shaders/gradients/SkGradientShader.cpp",
"skia/src/shaders/gradients/SkLinearGradient.cpp",
"skia/src/shaders/gradients/SkRadialGradient.cpp",
"skia/src/shaders/gradients/SkSweepGradient.cpp",
"skia/src/shaders/gradients/SkTwoPointConicalGradient.cpp",
"skia/src/sksl/SkSLASTNode.cpp",
"skia/src/sksl/SkSLByteCode.cpp",
"skia/src/sksl/SkSLByteCodeGenerator.cpp",
"skia/src/sksl/SkSLCFGGenerator.cpp",
"skia/src/sksl/SkSLCompiler.cpp",
"skia/src/sksl/SkSLIRGenerator.cpp",
"skia/src/sksl/SkSLJIT.cpp",
"skia/src/sksl/SkSLLexer.cpp",
"skia/src/sksl/SkSLParser.cpp",
"skia/src/sksl/SkSLString.cpp",
"skia/src/sksl/SkSLUtil.cpp",
"skia/src/sksl/ir/SkSLSetting.cpp",
"skia/src/sksl/ir/SkSLSymbolTable.cpp",
"skia/src/sksl/ir/SkSLType.cpp",
"skia/src/sksl/ir/SkSLVariableReference.cpp",
"skia/src/utils/Sk3D.cpp",
"skia/src/utils/SkAnimCodecPlayer.cpp",
"skia/src/utils/SkBase64.cpp",
"skia/src/utils/SkCamera.cpp",
"skia/src/utils/SkCanvasStack.cpp",
"skia/src/utils/SkCanvasStateUtils.cpp",
"skia/src/utils/SkCharToGlyphCache.cpp",
"skia/src/utils/SkDashPath.cpp",
"skia/src/utils/SkEventTracer.cpp",
"skia/src/utils/SkFloatToDecimal.cpp",
"skia/src/utils/SkFrontBufferedStream.cpp",
"skia/src/utils/SkInterpolator.cpp",
"skia/src/utils/SkJSON.cpp",
"skia/src/utils/SkJSONWriter.cpp",
"skia/src/utils/SkMatrix22.cpp",
"skia/src/utils/SkMultiPictureDocument.cpp",
"skia/src/utils/SkNWayCanvas.cpp",
"skia/src/utils/SkNullCanvas.cpp",
"skia/src/utils/SkOSPath.cpp",
"skia/src/utils/SkPaintFilterCanvas.cpp",
"skia/src/utils/SkParse.cpp",
"skia/src/utils/SkParseColor.cpp",
"skia/src/utils/SkParsePath.cpp",
"skia/src/utils/SkPatchUtils.cpp",
"skia/src/utils/SkPolyUtils.cpp",
"skia/src/utils/SkShadowTessellator.cpp",
"skia/src/utils/SkShadowUtils.cpp",
"skia/src/utils/SkShaperJSONWriter.cpp",
"skia/src/utils/SkTextUtils.cpp",
"skia/src/utils/SkThreadUtils_pthread.cpp",
"skia/src/utils/SkThreadUtils_win.cpp",
"skia/src/utils/SkUTF.cpp",
"skia/src/utils/SkWhitelistTypefaces.cpp",
"skia/src/utils/mac/SkCreateCGImageRef.cpp",
"skia/src/utils/mac/SkStream_mac.cpp",
"skia/src/utils/win/SkAutoCoInitialize.cpp",
"skia/src/utils/win/SkDWrite.cpp",
"skia/src/utils/win/SkDWriteFontFileStream.cpp",
"skia/src/utils/win/SkDWriteGeometrySink.cpp",
"skia/src/utils/win/SkHRESULT.cpp",
"skia/src/utils/win/SkIStream.cpp",
"skia/src/utils/win/SkWGL_win.cpp",
"skia/src/xps/SkXPSDevice.cpp",
"skia/src/xps/SkXPSDocument.cpp",
]
defines = [
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_SUPPORT_PDF",
"SK_HAS_JPEG_LIBRARY",
"SK_HAS_HEIF_LIBRARY",
"SK_HAS_PNG_LIBRARY",
"SK_ENABLE_SKSL_INTERPRETER",
"SK_HAS_WEBP_LIBRARY",
"SK_XML",
"XML_STATIC",
"XML_POOR_ENTROPY",
"SK_DISABLE_AAA",
"SK_DISABLE_READBUFFER",
"SK_DISABLE_EFFECT_DESERIALIZATION",
"SK_DISABLE_LEGACY_SHADERCONTEXT",
"SK_DISABLE_LOWP_RASTER_PIPELINE",
"SK_FORCE_RASTER_PIPELINE_BLITTER",
]
if (is_standard_system) {
defines += [
"SK_SUPPORT_ATLAS_TEXT=0",
"SK_SUPPORT_GPU=0",
]
} else {
defines += [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GL",
]
}
if (enable_dump_drawcmd) {
defines += [ "DUMP_DRAW_CMD" ]
}
if (use_mingw_win) {
defines += ace_windows_defines
sources -= [
"skia/src/ports/SkOSFile_posix.cpp",
"skia/src/ports/SkOSLibrary_posix.cpp",
"skia/src/ports/SkTLS_pthread.cpp",
# SkXPS - Experimental XPS backend, maybe we can remove this.
"skia/src/xps/SkXPSDevice.cpp",
"skia/src/xps/SkXPSDocument.cpp",
]
sources += [
"skia/src/ports/SkDebug_win.cpp",
"skia/src/ports/SkImageEncoder_WIC.cpp",
"skia/src/ports/SkImageGeneratorWIC.cpp",
"skia/src/ports/SkOSFile_win.cpp",
"skia/src/ports/SkOSLibrary_win.cpp",
"skia/src/ports/SkTLS_win.cpp",
]
libs = [
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libfontsub.a",
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libole32.a",
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/liboleaut32.a",
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libuser32.a",
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libusp10.a",
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libwindowscodecs.a",
]
} else if (use_mac) {
sources += [
"skia/src/ports/SkDebug_stdio.cpp",
"skia/src/ports/SkFontHost_mac.cpp",
"skia/src/ports/SkImageEncoder_CG.cpp",
"skia/src/ports/SkImageGeneratorCG.cpp",
]
libs = [
# AppKit symbols NSFontWeightXXX may be dlsym'ed.
"AppKit.framework",
"ApplicationServices.framework",
"OpenGL.framework",
]
} else {
if (target_cpu != "arm") {
defines += [ "SKVM_JIT" ]
}
if (is_standard_system) {
defines += ace_ohos_defines
sources += [ "skia/src/ports/SkDebug_ohos.cpp" ]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
}
}
config("ace_skia_ext_config") {
visibility = [ ":*" ]
include_dirs = [
"//third_party/aosp/external/skia/src/core",
"//third_party/aosp/external/skia/src/opts",
"//third_party/aosp/external/skia/src/shaders",
"//third_party/aosp/external/skia/src/gpu",
"$libs_root/shared_library/${target_os}_${target_cpu}/include/frameworks/native/libs/nativewindow/include",
"$libs_root/shared_library/${target_os}_${target_cpu}/include/frameworks/native/libs/arect/include",
"$flutter_root",
"skia",
"engine",
]
}
ohos_source_set("ace_skia_ext") {
configs = [
":ace_skia_ext_config",
":flutter_config",
]
sources = [
# enable ext utils
"//third_party/aosp/external/skia/src/core/SkArenaAlloc.cpp",
"//third_party/aosp/external/skia/src/core/SkOpts.cpp",
"//third_party/aosp/external/skia/src/core/SkTSearch.cpp",
"//third_party/aosp/external/skia/src/utils/SkBase64.cpp",
"//third_party/aosp/external/skia/src/utils/SkParsePath.cpp",
# use ohos fontmgr
"skia/src/ports/SkFontMgr_ohos.cpp",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
defines = [ "OHOS_ACE_SKIA_EXT" ]
deps = [
":ace_skia_opts",
":ace_svg_model_ohos",
":ace_xml_ohos",
]
if (use_mingw_win) {
cflags_cc += [ "-Wno-unknown-pragmas" ]
}
}
config("ace_jpeg_config") {
visibility = [ ":*" ]
include_dirs = [
"skia",
"skia/third_party/libjpeg-turbo",
"skia/third_party/externals/libjpeg-turbo",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_jpeg") {
configs = [ ":ace_jpeg_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/src/codec/SkJpegCodec.cpp",
"skia/src/codec/SkJpegDecoderMgr.cpp",
"skia/src/codec/SkJpegUtility.cpp",
"skia/src/images/SkJPEGWriteUtility.cpp",
"skia/src/images/SkJpegEncoder.cpp",
]
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_HAS_JPEG_LIBRARY",
]
}
config("ace_skcms_config") {
visibility = [ ":*" ]
include_dirs = [ "skia/include/third_party/skcms" ]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-w",
"-std=c11",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_skcms") {
configs = [ ":ace_skcms_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [ "skia/third_party/skcms/skcms.cc" ]
}
config("pdf_compile_flags") {
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
"-Wno-extra-semi",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
"-Wno-extra-semi",
]
if (use_mingw_win) {
cflags_cc += [ "-Wno-unknown-pragmas" ]
}
}
config("ace_pdf_config_ohos") {
visibility = [ ":*" ]
include_dirs = ace_pdf_config_ohos_include_dirs
}
config("ace_pdf_config_windows") {
visibility = [ ":*" ]
include_dirs = ace_pdf_config_preview_include_dirs
}
config("ace_pdf_config_mac") {
visibility = [ ":*" ]
include_dirs = ace_pdf_config_preview_include_dirs
}
template("ace_pdf") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [
":ace_pdf_config_$platform",
":flutter_config",
":pdf_compile_flags",
]
defines += invoker.defines
deps = [ "//third_party/zlib:libz" ]
sources = [
"skia/src/pdf/SkClusterator.cpp",
"skia/src/pdf/SkDeflate.cpp",
"skia/src/pdf/SkJpegInfo.cpp",
"skia/src/pdf/SkKeyedImage.cpp",
"skia/src/pdf/SkPDFBitmap.cpp",
"skia/src/pdf/SkPDFDevice.cpp",
"skia/src/pdf/SkPDFDocument.cpp",
"skia/src/pdf/SkPDFFont.cpp",
"skia/src/pdf/SkPDFFormXObject.cpp",
"skia/src/pdf/SkPDFGradientShader.cpp",
"skia/src/pdf/SkPDFGraphicStackState.cpp",
"skia/src/pdf/SkPDFGraphicState.cpp",
"skia/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp",
"skia/src/pdf/SkPDFMakeToUnicodeCmap.cpp",
"skia/src/pdf/SkPDFMetadata.cpp",
"skia/src/pdf/SkPDFResourceDict.cpp",
"skia/src/pdf/SkPDFShader.cpp",
"skia/src/pdf/SkPDFSubsetFont.cpp",
"skia/src/pdf/SkPDFTag.cpp",
"skia/src/pdf/SkPDFType1Font.cpp",
"skia/src/pdf/SkPDFTypes.cpp",
"skia/src/pdf/SkPDFUtils.cpp",
]
if (use_mingw_win) {
sources += [ "skia/third_party/icu/SkLoadICU.cpp" ]
}
defines += [
"SK_PDF_USE_SFNTLY",
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_SUPPORT_PDF",
"SK_HAS_JPEG_LIBRARY",
"U_USING_ICU_NAMESPACE=0",
"SK_USING_THIRD_PARTY_ICU",
]
}
}
ace_pdf("ace_pdf_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
ace_pdf("ace_pdf_windows") {
defines = ace_windows_defines
platform = "windows"
}
ace_pdf("ace_pdf_mac") {
defines = ace_mac_defines
platform = "mac"
}
config("ace_gpu_config") {
visibility = [ ":*" ]
include_dirs = [ "skia" ]
if (use_mingw_win) {
include_dirs += [ "skia/third_party/externals/angle2/include" ]
}
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
"-Wno-extra-semi",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
"-Wno-extra-semi",
]
if (use_mingw_win) {
cflags_cc += [
"-Wno-unknown-pragmas",
"-Wno-used-but-marked-unused",
]
}
}
ohos_source_set("ace_gpu") {
configs = [ ":ace_gpu_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/src/atlastext/SkAtlasTextContext.cpp",
"skia/src/atlastext/SkAtlasTextTarget.cpp",
"skia/src/atlastext/SkInternalAtlasTextContext.cpp",
"skia/src/gpu/GrAHardwareBufferImageGenerator.cpp",
"skia/src/gpu/GrAHardwareBufferUtils.cpp",
"skia/src/gpu/GrAuditTrail.cpp",
"skia/src/gpu/GrBackendSurface.cpp",
"skia/src/gpu/GrBackendTextureImageGenerator.cpp",
"skia/src/gpu/GrBitmapTextureMaker.cpp",
"skia/src/gpu/GrBlurUtils.cpp",
"skia/src/gpu/GrBufferAllocPool.cpp",
"skia/src/gpu/GrCaps.cpp",
"skia/src/gpu/GrClipStackClip.cpp",
"skia/src/gpu/GrColorSpaceInfo.cpp",
"skia/src/gpu/GrColorSpaceXform.cpp",
"skia/src/gpu/GrContext.cpp",
"skia/src/gpu/GrContextPriv.cpp",
"skia/src/gpu/GrContextThreadSafeProxy.cpp",
"skia/src/gpu/GrContext_Base.cpp",
"skia/src/gpu/GrDDLContext.cpp",
"skia/src/gpu/GrDataUtils.cpp",
"skia/src/gpu/GrDefaultGeoProcFactory.cpp",
"skia/src/gpu/GrDeinstantiateProxyTracker.cpp",
"skia/src/gpu/GrDistanceFieldGenFromVector.cpp",
"skia/src/gpu/GrDrawOpAtlas.cpp",
"skia/src/gpu/GrDrawOpTest.cpp",
"skia/src/gpu/GrDrawingManager.cpp",
"skia/src/gpu/GrDriverBugWorkarounds.cpp",
"skia/src/gpu/GrFixedClip.cpp",
"skia/src/gpu/GrFragmentProcessor.cpp",
"skia/src/gpu/GrGpu.cpp",
"skia/src/gpu/GrGpuBuffer.cpp",
"skia/src/gpu/GrGpuCommandBuffer.cpp",
"skia/src/gpu/GrGpuResource.cpp",
"skia/src/gpu/GrImageContext.cpp",
"skia/src/gpu/GrImageTextureMaker.cpp",
"skia/src/gpu/GrLegacyDirectContext.cpp",
"skia/src/gpu/GrMemoryPool.cpp",
"skia/src/gpu/GrOnFlushResourceProvider.cpp",
"skia/src/gpu/GrOpFlushState.cpp",
"skia/src/gpu/GrOpList.cpp",
"skia/src/gpu/GrPaint.cpp",
"skia/src/gpu/GrPath.cpp",
"skia/src/gpu/GrPathProcessor.cpp",
"skia/src/gpu/GrPathRenderer.cpp",
"skia/src/gpu/GrPathRendererChain.cpp",
"skia/src/gpu/GrPathRendering.cpp",
"skia/src/gpu/GrPipeline.cpp",
"skia/src/gpu/GrPrimitiveProcessor.cpp",
"skia/src/gpu/GrProcessor.cpp",
"skia/src/gpu/GrProcessorAnalysis.cpp",
"skia/src/gpu/GrProcessorSet.cpp",
"skia/src/gpu/GrProcessorUnitTest.cpp",
"skia/src/gpu/GrProgramDesc.cpp",
"skia/src/gpu/GrProxyProvider.cpp",
"skia/src/gpu/GrRecordingContext.cpp",
"skia/src/gpu/GrRectanizer_pow2.cpp",
"skia/src/gpu/GrRectanizer_skyline.cpp",
"skia/src/gpu/GrReducedClip.cpp",
"skia/src/gpu/GrRenderTarget.cpp",
"skia/src/gpu/GrRenderTargetContext.cpp",
"skia/src/gpu/GrRenderTargetOpList.cpp",
"skia/src/gpu/GrRenderTargetProxy.cpp",
"skia/src/gpu/GrRenderTask.cpp",
"skia/src/gpu/GrResourceAllocator.cpp",
"skia/src/gpu/GrResourceCache.cpp",
"skia/src/gpu/GrResourceProvider.cpp",
"skia/src/gpu/GrSWMaskHelper.cpp",
"skia/src/gpu/GrSamplePatternDictionary.cpp",
"skia/src/gpu/GrShaderCaps.cpp",
"skia/src/gpu/GrShaderUtils.cpp",
"skia/src/gpu/GrShaderVar.cpp",
"skia/src/gpu/GrSoftwarePathRenderer.cpp",
"skia/src/gpu/GrStencilAttachment.cpp",
"skia/src/gpu/GrStencilSettings.cpp",
"skia/src/gpu/GrStyle.cpp",
"skia/src/gpu/GrSurface.cpp",
"skia/src/gpu/GrSurfaceContext.cpp",
"skia/src/gpu/GrSurfaceProxy.cpp",
"skia/src/gpu/GrSwizzle.cpp",
"skia/src/gpu/GrTessellator.cpp",
"skia/src/gpu/GrTestUtils.cpp",
"skia/src/gpu/GrTexture.cpp",
"skia/src/gpu/GrTextureAdjuster.cpp",
"skia/src/gpu/GrTextureContext.cpp",
"skia/src/gpu/GrTextureMaker.cpp",
"skia/src/gpu/GrTextureOpList.cpp",
"skia/src/gpu/GrTextureProducer.cpp",
"skia/src/gpu/GrTextureProxy.cpp",
"skia/src/gpu/GrTextureRenderTargetProxy.cpp",
"skia/src/gpu/GrTextureResolveRenderTask.cpp",
"skia/src/gpu/GrXferProcessor.cpp",
"skia/src/gpu/GrYUVProvider.cpp",
"skia/src/gpu/SkGpuDevice.cpp",
"skia/src/gpu/SkGpuDevice_drawTexture.cpp",
"skia/src/gpu/SkGr.cpp",
"skia/src/gpu/ccpr/GrCCAtlas.cpp",
"skia/src/gpu/ccpr/GrCCClipPath.cpp",
"skia/src/gpu/ccpr/GrCCClipProcessor.cpp",
"skia/src/gpu/ccpr/GrCCConicShader.cpp",
"skia/src/gpu/ccpr/GrCCCoverageProcessor.cpp",
"skia/src/gpu/ccpr/GrCCCubicShader.cpp",
"skia/src/gpu/ccpr/GrCCDrawPathsOp.cpp",
"skia/src/gpu/ccpr/GrCCFillGeometry.cpp",
"skia/src/gpu/ccpr/GrCCFiller.cpp",
"skia/src/gpu/ccpr/GrCCPathCache.cpp",
"skia/src/gpu/ccpr/GrCCPathProcessor.cpp",
"skia/src/gpu/ccpr/GrCCPerFlushResources.cpp",
"skia/src/gpu/ccpr/GrCCQuadraticShader.cpp",
"skia/src/gpu/ccpr/GrCCStrokeGeometry.cpp",
"skia/src/gpu/ccpr/GrCCStroker.cpp",
"skia/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp",
"skia/src/gpu/ccpr/GrGSCoverageProcessor.cpp",
"skia/src/gpu/ccpr/GrOctoBounds.cpp",
"skia/src/gpu/ccpr/GrSampleMaskProcessor.cpp",
"skia/src/gpu/ccpr/GrStencilAtlasOp.cpp",
"skia/src/gpu/ccpr/GrVSCoverageProcessor.cpp",
"skia/src/gpu/effects/GrBezierEffect.cpp",
"skia/src/gpu/effects/GrBicubicEffect.cpp",
"skia/src/gpu/effects/GrBitmapTextGeoProc.cpp",
"skia/src/gpu/effects/GrConvexPolyEffect.cpp",
"skia/src/gpu/effects/GrCoverageSetOpXP.cpp",
"skia/src/gpu/effects/GrCustomXfermode.cpp",
"skia/src/gpu/effects/GrDisableColorXP.cpp",
"skia/src/gpu/effects/GrDistanceFieldGeoProc.cpp",
"skia/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp",
"skia/src/gpu/effects/GrMatrixConvolutionEffect.cpp",
"skia/src/gpu/effects/GrOvalEffect.cpp",
"skia/src/gpu/effects/GrPorterDuffXferProcessor.cpp",
"skia/src/gpu/effects/GrRRectEffect.cpp",
"skia/src/gpu/effects/GrSRGBEffect.cpp",
"skia/src/gpu/effects/GrShadowGeoProc.cpp",
"skia/src/gpu/effects/GrSkSLFP.cpp",
"skia/src/gpu/effects/GrTextureDomain.cpp",
"skia/src/gpu/effects/GrXfermodeFragmentProcessor.cpp",
"skia/src/gpu/effects/GrYUVtoRGBEffect.cpp",
"skia/src/gpu/effects/generated/GrAARectEffect.cpp",
"skia/src/gpu/effects/generated/GrAlphaThresholdFragmentProcessor.cpp",
"skia/src/gpu/effects/generated/GrBlurredEdgeFragmentProcessor.cpp",
"skia/src/gpu/effects/generated/GrCircleBlurFragmentProcessor.cpp",
"skia/src/gpu/effects/generated/GrCircleEffect.cpp",
"skia/src/gpu/effects/generated/GrColorMatrixFragmentProcessor.cpp",
"skia/src/gpu/effects/generated/GrComposeLerpEffect.cpp",
"skia/src/gpu/effects/generated/GrComposeLerpRedEffect.cpp",
"skia/src/gpu/effects/generated/GrConfigConversionEffect.cpp",
"skia/src/gpu/effects/generated/GrConstColorProcessor.cpp",
"skia/src/gpu/effects/generated/GrEllipseEffect.cpp",
"skia/src/gpu/effects/generated/GrLumaColorFilterEffect.cpp",
"skia/src/gpu/effects/generated/GrMagnifierEffect.cpp",
"skia/src/gpu/effects/generated/GrMixerEffect.cpp",
"skia/src/gpu/effects/generated/GrOverrideInputFragmentProcessor.cpp",
"skia/src/gpu/effects/generated/GrPremulInputFragmentProcessor.cpp",
"skia/src/gpu/effects/generated/GrRRectBlurEffect.cpp",
"skia/src/gpu/effects/generated/GrRectBlurEffect.cpp",
"skia/src/gpu/effects/generated/GrSimpleTextureEffect.cpp",
"skia/src/gpu/geometry/GrPathUtils.cpp",
"skia/src/gpu/geometry/GrQuad.cpp",
"skia/src/gpu/geometry/GrQuadUtils.cpp",
"skia/src/gpu/geometry/GrShape.cpp",
"skia/src/gpu/gl/GrGLAssembleGLESInterfaceAutogen.cpp",
"skia/src/gpu/gl/GrGLAssembleGLInterfaceAutogen.cpp",
"skia/src/gpu/gl/GrGLAssembleHelpers.cpp",
"skia/src/gpu/gl/GrGLAssembleInterface.cpp",
"skia/src/gpu/gl/GrGLAssembleWebGLInterfaceAutogen.cpp",
"skia/src/gpu/gl/GrGLBuffer.cpp",
"skia/src/gpu/gl/GrGLCaps.cpp",
"skia/src/gpu/gl/GrGLContext.cpp",
"skia/src/gpu/gl/GrGLExtensions.cpp",
"skia/src/gpu/gl/GrGLGLSL.cpp",
"skia/src/gpu/gl/GrGLGpu.cpp",
"skia/src/gpu/gl/GrGLGpuCommandBuffer.cpp",
"skia/src/gpu/gl/GrGLGpuProgramCache.cpp",
"skia/src/gpu/gl/GrGLInterfaceAutogen.cpp",
"skia/src/gpu/gl/GrGLPath.cpp",
"skia/src/gpu/gl/GrGLPathRendering.cpp",
"skia/src/gpu/gl/GrGLProgram.cpp",
"skia/src/gpu/gl/GrGLProgramDataManager.cpp",
"skia/src/gpu/gl/GrGLRenderTarget.cpp",
"skia/src/gpu/gl/GrGLSemaphore.cpp",
"skia/src/gpu/gl/GrGLStencilAttachment.cpp",
"skia/src/gpu/gl/GrGLTexture.cpp",
"skia/src/gpu/gl/GrGLTextureRenderTarget.cpp",
"skia/src/gpu/gl/GrGLTypesPriv.cpp",
"skia/src/gpu/gl/GrGLUniformHandler.cpp",
"skia/src/gpu/gl/GrGLUtil.cpp",
"skia/src/gpu/gl/GrGLVaryingHandler.cpp",
"skia/src/gpu/gl/GrGLVertexArray.cpp",
"skia/src/gpu/gl/builders/GrGLProgramBuilder.cpp",
"skia/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp",
"skia/src/gpu/gl/egl/GrGLMakeNativeInterface_egl.cpp",
"skia/src/gpu/glsl/GrGLSL.cpp",
"skia/src/gpu/glsl/GrGLSLBlend.cpp",
"skia/src/gpu/glsl/GrGLSLFragmentProcessor.cpp",
"skia/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp",
"skia/src/gpu/glsl/GrGLSLGeometryProcessor.cpp",
"skia/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp",
"skia/src/gpu/glsl/GrGLSLProgramBuilder.cpp",
"skia/src/gpu/glsl/GrGLSLProgramDataManager.cpp",
"skia/src/gpu/glsl/GrGLSLShaderBuilder.cpp",
"skia/src/gpu/glsl/GrGLSLUtil.cpp",
"skia/src/gpu/glsl/GrGLSLVarying.cpp",
"skia/src/gpu/glsl/GrGLSLVertexGeoBuilder.cpp",
"skia/src/gpu/glsl/GrGLSLXferProcessor.cpp",
"skia/src/gpu/gradients/GrGradientBitmapCache.cpp",
"skia/src/gpu/gradients/GrGradientShader.cpp",
"skia/src/gpu/gradients/generated/GrClampedGradientEffect.cpp",
"skia/src/gpu/gradients/generated/GrDualIntervalGradientColorizer.cpp",
"skia/src/gpu/gradients/generated/GrLinearGradientLayout.cpp",
"skia/src/gpu/gradients/generated/GrRadialGradientLayout.cpp",
"skia/src/gpu/gradients/generated/GrSingleIntervalGradientColorizer.cpp",
"skia/src/gpu/gradients/generated/GrSweepGradientLayout.cpp",
"skia/src/gpu/gradients/generated/GrTextureGradientColorizer.cpp",
"skia/src/gpu/gradients/generated/GrTiledGradientEffect.cpp",
"skia/src/gpu/gradients/generated/GrTwoPointConicalGradientLayout.cpp",
"skia/src/gpu/gradients/generated/GrUnrolledBinaryGradientColorizer.cpp",
"skia/src/gpu/mock/GrMockCaps.cpp",
"skia/src/gpu/mock/GrMockGpu.cpp",
"skia/src/gpu/mock/GrMockTypes.cpp",
"skia/src/gpu/ops/GrAAConvexPathRenderer.cpp",
"skia/src/gpu/ops/GrAAConvexTessellator.cpp",
"skia/src/gpu/ops/GrAAHairLinePathRenderer.cpp",
"skia/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp",
"skia/src/gpu/ops/GrAtlasTextOp.cpp",
"skia/src/gpu/ops/GrClearOp.cpp",
"skia/src/gpu/ops/GrClearStencilClipOp.cpp",
"skia/src/gpu/ops/GrCopySurfaceOp.cpp",
"skia/src/gpu/ops/GrDashLinePathRenderer.cpp",
"skia/src/gpu/ops/GrDashOp.cpp",
"skia/src/gpu/ops/GrDebugMarkerOp.cpp",
"skia/src/gpu/ops/GrDefaultPathRenderer.cpp",
"skia/src/gpu/ops/GrDrawAtlasOp.cpp",
"skia/src/gpu/ops/GrDrawPathOp.cpp",
"skia/src/gpu/ops/GrDrawVerticesOp.cpp",
"skia/src/gpu/ops/GrDrawableOp.cpp",
"skia/src/gpu/ops/GrFillRRectOp.cpp",
"skia/src/gpu/ops/GrFillRectOp.cpp",
"skia/src/gpu/ops/GrLatticeOp.cpp",
"skia/src/gpu/ops/GrMeshDrawOp.cpp",
"skia/src/gpu/ops/GrOp.cpp",
"skia/src/gpu/ops/GrOvalOpFactory.cpp",
"skia/src/gpu/ops/GrQuadPerEdgeAA.cpp",
"skia/src/gpu/ops/GrRegionOp.cpp",
"skia/src/gpu/ops/GrSemaphoreOp.cpp",
"skia/src/gpu/ops/GrShadowRRectOp.cpp",
"skia/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp",
"skia/src/gpu/ops/GrSmallPathRenderer.cpp",
"skia/src/gpu/ops/GrStencilAndCoverPathRenderer.cpp",
"skia/src/gpu/ops/GrStencilPathOp.cpp",
"skia/src/gpu/ops/GrStrokeRectOp.cpp",
"skia/src/gpu/ops/GrTessellatingPathRenderer.cpp",
"skia/src/gpu/ops/GrTextureOp.cpp",
"skia/src/gpu/ops/GrTransferFromOp.cpp",
"skia/src/gpu/text/GrAtlasManager.cpp",
"skia/src/gpu/text/GrDistanceFieldAdjustTable.cpp",
"skia/src/gpu/text/GrSDFMaskFilter.cpp",
"skia/src/gpu/text/GrStrikeCache.cpp",
"skia/src/gpu/text/GrTextBlob.cpp",
"skia/src/gpu/text/GrTextBlobCache.cpp",
"skia/src/gpu/text/GrTextBlobVertexRegenerator.cpp",
"skia/src/gpu/text/GrTextContext.cpp",
"skia/src/image/SkImage_Gpu.cpp",
"skia/src/image/SkImage_GpuBase.cpp",
"skia/src/image/SkImage_GpuYUVA.cpp",
"skia/src/image/SkSurface_Gpu.cpp",
"skia/src/sksl/SkSLCPPCodeGenerator.cpp",
"skia/src/sksl/SkSLCPPUniformCTypes.cpp",
"skia/src/sksl/SkSLGLSLCodeGenerator.cpp",
"skia/src/sksl/SkSLHCodeGenerator.cpp",
"skia/src/sksl/SkSLMetalCodeGenerator.cpp",
"skia/src/sksl/SkSLOutputStream.cpp",
"skia/src/sksl/SkSLPipelineStageCodeGenerator.cpp",
"skia/src/sksl/SkSLSPIRVCodeGenerator.cpp",
]
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_GL",
"SK_DISABLE_REDUCE_OPLIST_SPLITTING",
]
if (use_mingw_win) {
defines += [ "SK_BUILD_FOR_WIN" ]
sources -= [ "skia/src/gpu/gl/egl/GrGLMakeNativeInterface_egl.cpp" ]
sources += [ "skia/src/gpu/gl/win/GrGLMakeNativeInterface_win.cpp" ]
libs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libopengl32.a" ]
} else if (use_mac) {
defines += [ "SK_ASSUME_GL=1" ]
sources -= [ "skia/src/gpu/gl/egl/GrGLMakeNativeInterface_egl.cpp" ]
sources += [ "skia/src/gpu/gl/mac/GrGLMakeNativeInterface_mac.cpp" ]
}
}
config("ace_typeface_freetype_config") {
visibility = [ ":*" ]
include_dirs = [
"skia",
"skia/third_party/externals/freetype/include",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_typeface_freetype") {
configs = [
":ace_typeface_freetype_config",
":flutter_config",
]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/src/ports/SkFontHost_FreeType.cpp",
"skia/src/ports/SkFontHost_FreeType_common.cpp",
]
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) << 24) | ((FREETYPE_MINOR) << 16) | ((FREETYPE_PATCH) << 8))",
]
}
config("ace_gif_config") {
visibility = [ ":*" ]
include_dirs = [ "skia" ]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_gif") {
configs = [ ":ace_gif_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/src/codec/SkGifCodec.cpp",
"skia/third_party/gif/SkGifImageReader.cpp",
]
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
]
}
config("ace_xml_config") {
visibility = [ ":*" ]
include_dirs = [
"skia",
"//third_party/expat/lib",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
if (use_mingw_win || use_mac) {
cflags_cc += [ "-Wno-unknown-pragmas" ]
}
}
template("ace_xml") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [ ":ace_xml_config" ]
configs += [ ":reduce_eh_frame_config" ]
defines += invoker.defines
sources = [
"skia/src/xml/SkXMLParser.cpp",
"skia/src/xml/SkXMLWriter.cpp",
]
defines += [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_XML",
"XML_STATIC",
"XML_POOR_ENTROPY",
]
}
}
ace_xml("ace_xml_ohos") {
defines = ace_ohos_defines
}
ace_xml("ace_xml_windows") {
defines = ace_windows_defines
}
ace_xml("ace_xml_mac") {
defines = ace_mac_defines
}
config("ace_fontmgr_config") {
visibility = [ ":*" ]
include_dirs = [
"$flutter_root",
"skia",
"//third_party/expat/lib",
]
if (is_standard_system) {
include_dirs += [
"skia/include/private",
"skia/include/core",
"skia/src/core",
"skia/src/ports",
"skia/src/ports/skia_ohos",
"//third_party/jsoncpp/include",
"//utils/native/base/include",
]
}
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
if (use_mingw_win) {
cflags_cc += [ "-Wno-unknown-pragmas" ]
}
}
template("ace_fontmgr") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [
":ace_fontmgr_config",
":flutter_config",
]
defines += invoker.defines
if (use_mingw_win) {
sources = [
"skia/src/fonts/SkFontMgr_indirect.cpp",
"skia/src/ports/SkFontHost_win.cpp",
"skia/src/ports/SkFontMgr_win_dw.cpp",
"skia/src/ports/SkFontMgr_win_dw_factory.cpp",
"skia/src/ports/SkScalerContext_win_dw.cpp",
"skia/src/ports/SkTypeface_win_dw.cpp",
]
libs = [
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libgdi32.a",
"//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libuuid.a",
]
} else if (is_standard_system) {
sources = []
deps = [ ":ace_fontmgr_standard" ]
} else if (use_mac) {
# No source file on the mac platform
sources = []
}
defines += [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"XML_STATIC",
"XML_POOR_ENTROPY",
]
if (use_mingw_win) {
defines += [ "SK_BUILD_FOR_WIN" ]
}
}
}
ace_fontmgr("ace_fontmgr_ohos") {
defines = ace_ohos_defines
}
ace_fontmgr("ace_fontmgr_windows") {
defines = ace_windows_defines
}
ace_fontmgr("ace_fontmgr_mac") {
defines = ace_mac_defines
}
ohos_source_set("ace_fontmgr_standard") {
configs = [
":ace_fontmgr_config",
":flutter_config",
]
sources = [
"skia/src/ports/skia_ohos/FontConfig_ohos.cpp",
"skia/src/ports/skia_ohos/SkFontMgr_ohos.cpp",
"skia/src/ports/skia_ohos/SkFontMgr_ohos_factory.cpp",
"skia/src/ports/skia_ohos/SkFontStyleSet_ohos.cpp",
"skia/src/ports/skia_ohos/SkTypeface_ohos.cpp",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
"-Wsign-compare",
"-Wno-vla",
"-Wno-tautological-unsigned-enum-zero-compare",
]
deps = [
":ace_fontconfig.json",
":ace_jsoncpp",
"//utils/resources:ohos_fonts",
]
defines = [ "SK_BUILD_FONT_MGR_FOR_OHOS" ]
}
ohos_prebuilt_etc("ace_fontconfig.json") {
source = "skia/src/ports/skia_ohos/config/fontconfig.json"
subsystem_name = "ace"
part_name = "ace_engine_standard"
}
config("ace_jsoncpp_config") {
visibility = [ ":*" ]
include_dirs = [ "//third_party/jsoncpp/include" ]
}
ohos_source_set("ace_jsoncpp") {
configs = [ ":ace_jsoncpp_config" ]
sources = [
"//third_party/jsoncpp/src/lib_json/json_reader.cpp",
"//third_party/jsoncpp/src/lib_json/json_value.cpp",
"//third_party/jsoncpp/src/lib_json/json_writer.cpp",
]
cflags_cc = [
"-DJSON_USE_EXCEPTION=0",
"-Wall",
"-Werror",
"-Wno-implicit-fallthrough",
]
}
config("ace_libjpeg_config") {
visibility = [ ":*" ]
include_dirs = [
"skia/third_party/libjpeg-turbo",
"skia/third_party/externals/libjpeg-turbo",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_libjpeg") {
configs = [ ":ace_libjpeg_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/third_party/externals/libjpeg-turbo/jaricom.c",
"skia/third_party/externals/libjpeg-turbo/jcapimin.c",
"skia/third_party/externals/libjpeg-turbo/jcapistd.c",
"skia/third_party/externals/libjpeg-turbo/jcarith.c",
"skia/third_party/externals/libjpeg-turbo/jccoefct.c",
"skia/third_party/externals/libjpeg-turbo/jccolor.c",
"skia/third_party/externals/libjpeg-turbo/jcdctmgr.c",
"skia/third_party/externals/libjpeg-turbo/jchuff.c",
"skia/third_party/externals/libjpeg-turbo/jcinit.c",
"skia/third_party/externals/libjpeg-turbo/jcmainct.c",
"skia/third_party/externals/libjpeg-turbo/jcmarker.c",
"skia/third_party/externals/libjpeg-turbo/jcmaster.c",
"skia/third_party/externals/libjpeg-turbo/jcomapi.c",
"skia/third_party/externals/libjpeg-turbo/jcparam.c",
"skia/third_party/externals/libjpeg-turbo/jcphuff.c",
"skia/third_party/externals/libjpeg-turbo/jcprepct.c",
"skia/third_party/externals/libjpeg-turbo/jcsample.c",
"skia/third_party/externals/libjpeg-turbo/jdapimin.c",
"skia/third_party/externals/libjpeg-turbo/jdapistd.c",
"skia/third_party/externals/libjpeg-turbo/jdarith.c",
"skia/third_party/externals/libjpeg-turbo/jdcoefct.c",
"skia/third_party/externals/libjpeg-turbo/jdcolor.c",
"skia/third_party/externals/libjpeg-turbo/jddctmgr.c",
"skia/third_party/externals/libjpeg-turbo/jdhuff.c",
"skia/third_party/externals/libjpeg-turbo/jdinput.c",
"skia/third_party/externals/libjpeg-turbo/jdmainct.c",
"skia/third_party/externals/libjpeg-turbo/jdmarker.c",
"skia/third_party/externals/libjpeg-turbo/jdmaster.c",
"skia/third_party/externals/libjpeg-turbo/jdmerge.c",
"skia/third_party/externals/libjpeg-turbo/jdphuff.c",
"skia/third_party/externals/libjpeg-turbo/jdpostct.c",
"skia/third_party/externals/libjpeg-turbo/jdsample.c",
"skia/third_party/externals/libjpeg-turbo/jerror.c",
"skia/third_party/externals/libjpeg-turbo/jfdctflt.c",
"skia/third_party/externals/libjpeg-turbo/jfdctfst.c",
"skia/third_party/externals/libjpeg-turbo/jfdctint.c",
"skia/third_party/externals/libjpeg-turbo/jidctflt.c",
"skia/third_party/externals/libjpeg-turbo/jidctfst.c",
"skia/third_party/externals/libjpeg-turbo/jidctint.c",
"skia/third_party/externals/libjpeg-turbo/jidctred.c",
"skia/third_party/externals/libjpeg-turbo/jmemmgr.c",
"skia/third_party/externals/libjpeg-turbo/jmemnobs.c",
"skia/third_party/externals/libjpeg-turbo/jquant1.c",
"skia/third_party/externals/libjpeg-turbo/jquant2.c",
"skia/third_party/externals/libjpeg-turbo/jutils.c",
]
if (use_mingw_win || target_cpu == "x86_64" || use_mac) {
sources += [ "skia/third_party/externals/libjpeg-turbo/jsimd_none.c" ]
} else if (target_cpu == "arm") {
sources += [
"skia/third_party/externals/libjpeg-turbo/simd/arm/jsimd.c",
"skia/third_party/externals/libjpeg-turbo/simd/arm/jsimd_neon.S",
]
} else {
sources += [
"skia/third_party/externals/libjpeg-turbo/simd/arm64/jsimd.c",
"skia/third_party/externals/libjpeg-turbo/simd/arm64/jsimd_neon.S",
]
}
defines = [ "TURBO_FOR_WINDOWS" ]
}
config("ace_libexpat_config") {
visibility = [ ":*" ]
include_dirs = [ "//third_party/expat/lib" ]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_libexpat") {
configs = [ ":ace_libexpat_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"//third_party/expat/lib/xmlparse.c",
"//third_party/expat/lib/xmlrole.c",
"//third_party/expat/lib/xmltok.c",
]
defines = [
"HAVE_MEMMOVE",
"XML_STATIC",
"XML_POOR_ENTROPY",
]
}
config("libharfbuzz_compile_flags") {
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
config("ace_libharfbuzz_config_ohos") {
visibility = [ ":*" ]
include_dirs = ace_external_libharfbuzz_config_include_dirs
}
config("ace_libharfbuzz_config_windows") {
visibility = [ ":*" ]
include_dirs = ace_internal_libharfbuzz_config_include_dirs
}
config("ace_libharfbuzz_config_mac") {
visibility = [ ":*" ]
include_dirs = ace_internal_libharfbuzz_config_include_dirs
}
template("ace_libharfbuzz") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [
":ace_libharfbuzz_config_$platform",
":libharfbuzz_compile_flags",
]
defines += invoker.defines
sources = [
"skia/third_party/externals/harfbuzz/src/hb-aat-layout.cc",
"skia/third_party/externals/harfbuzz/src/hb-aat-map.cc",
"skia/third_party/externals/harfbuzz/src/hb-blob.cc",
"skia/third_party/externals/harfbuzz/src/hb-buffer-serialize.cc",
"skia/third_party/externals/harfbuzz/src/hb-buffer.cc",
"skia/third_party/externals/harfbuzz/src/hb-common.cc",
"skia/third_party/externals/harfbuzz/src/hb-face.cc",
"skia/third_party/externals/harfbuzz/src/hb-font.cc",
"skia/third_party/externals/harfbuzz/src/hb-icu.cc",
"skia/third_party/externals/harfbuzz/src/hb-map.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-cff1-table.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-cff2-table.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-color.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-face.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-font.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-layout.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-map.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-math.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-name.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-arabic.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-default.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-hangul.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-hebrew.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-indic-table.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-indic.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-khmer.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-myanmar.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-thai.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-use-table.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-use.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-complex-vowel-constraints.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-fallback.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape-normalize.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-shape.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-tag.cc",
"skia/third_party/externals/harfbuzz/src/hb-ot-var.cc",
"skia/third_party/externals/harfbuzz/src/hb-set.cc",
"skia/third_party/externals/harfbuzz/src/hb-shape-plan.cc",
"skia/third_party/externals/harfbuzz/src/hb-shape.cc",
"skia/third_party/externals/harfbuzz/src/hb-shaper.cc",
"skia/third_party/externals/harfbuzz/src/hb-static.cc",
"skia/third_party/externals/harfbuzz/src/hb-subset-cff-common.cc",
"skia/third_party/externals/harfbuzz/src/hb-subset-cff1.cc",
"skia/third_party/externals/harfbuzz/src/hb-subset-cff2.cc",
"skia/third_party/externals/harfbuzz/src/hb-subset-input.cc",
"skia/third_party/externals/harfbuzz/src/hb-subset-plan.cc",
"skia/third_party/externals/harfbuzz/src/hb-subset.cc",
"skia/third_party/externals/harfbuzz/src/hb-ucd.cc",
"skia/third_party/externals/harfbuzz/src/hb-unicode.cc",
"skia/third_party/externals/harfbuzz/src/hb-warning.cc",
]
defines += [
"HAVE_ICU",
"HAVE_ICU_BUILTIN",
"HAVE_INTEL_ATOMIC_PRIMITIVES",
"HAVE_OT",
"U_USING_ICU_NAMESPACE=0",
"SK_USING_THIRD_PARTY_ICU",
"UPRV_BLOCK_MACRO_BEGIN=",
"UPRV_BLOCK_MACRO_END=",
]
}
}
ace_libharfbuzz("ace_libharfbuzz_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
ace_libharfbuzz("ace_libharfbuzz_windows") {
defines = ace_windows_defines
platform = "windows"
}
ace_libharfbuzz("ace_libharfbuzz_mac") {
defines = ace_mac_defines
platform = "mac"
}
config("ace_libpng_config") {
visibility = [ ":*" ]
include_dirs = [
"skia/third_party/libpng",
"skia/third_party/externals/libpng",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_libpng") {
configs = [ ":ace_libpng_config" ]
configs += [ ":reduce_eh_frame_config" ]
deps = [ "//third_party/zlib:libz" ]
sources = [
"skia/third_party/externals/libpng/arm/arm_init.c",
"skia/third_party/externals/libpng/arm/filter_neon_intrinsics.c",
"skia/third_party/externals/libpng/arm/palette_neon_intrinsics.c",
"skia/third_party/externals/libpng/png.c",
"skia/third_party/externals/libpng/pngerror.c",
"skia/third_party/externals/libpng/pngget.c",
"skia/third_party/externals/libpng/pngmem.c",
"skia/third_party/externals/libpng/pngpread.c",
"skia/third_party/externals/libpng/pngread.c",
"skia/third_party/externals/libpng/pngrio.c",
"skia/third_party/externals/libpng/pngrtran.c",
"skia/third_party/externals/libpng/pngrutil.c",
"skia/third_party/externals/libpng/pngset.c",
"skia/third_party/externals/libpng/pngtrans.c",
"skia/third_party/externals/libpng/pngwio.c",
"skia/third_party/externals/libpng/pngwrite.c",
"skia/third_party/externals/libpng/pngwtran.c",
"skia/third_party/externals/libpng/pngwutil.c",
]
defines = [ "PNG_SET_OPTION_SUPPORTED" ]
}
config("ace_libfreetype2_config") {
visibility = [ ":*" ]
include_dirs = [
"skia/third_party/freetype2",
"skia/third_party/externals/freetype/include",
"skia/third_party/libpng",
"skia/third_party/externals/libpng",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_libfreetype2") {
configs = [ ":ace_libfreetype2_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/third_party/externals/freetype/src/autofit/autofit.c",
"skia/third_party/externals/freetype/src/base/ftbase.c",
"skia/third_party/externals/freetype/src/base/ftbbox.c",
"skia/third_party/externals/freetype/src/base/ftbitmap.c",
"skia/third_party/externals/freetype/src/base/ftdebug.c",
"skia/third_party/externals/freetype/src/base/ftfstype.c",
"skia/third_party/externals/freetype/src/base/ftgasp.c",
"skia/third_party/externals/freetype/src/base/ftglyph.c",
"skia/third_party/externals/freetype/src/base/ftinit.c",
"skia/third_party/externals/freetype/src/base/ftmm.c",
"skia/third_party/externals/freetype/src/base/ftpatent.c",
"skia/third_party/externals/freetype/src/base/ftstroke.c",
"skia/third_party/externals/freetype/src/base/ftsynth.c",
"skia/third_party/externals/freetype/src/base/ftsystem.c",
"skia/third_party/externals/freetype/src/base/fttype1.c",
"skia/third_party/externals/freetype/src/base/ftwinfnt.c",
"skia/third_party/externals/freetype/src/cff/cff.c",
"skia/third_party/externals/freetype/src/cid/type1cid.c",
"skia/third_party/externals/freetype/src/gzip/ftgzip.c",
"skia/third_party/externals/freetype/src/psaux/psaux.c",
"skia/third_party/externals/freetype/src/pshinter/pshinter.c",
"skia/third_party/externals/freetype/src/psnames/psnames.c",
"skia/third_party/externals/freetype/src/raster/raster.c",
"skia/third_party/externals/freetype/src/sfnt/sfnt.c",
"skia/third_party/externals/freetype/src/smooth/smooth.c",
"skia/third_party/externals/freetype/src/truetype/truetype.c",
"skia/third_party/externals/freetype/src/type1/type1.c",
]
defines = [
"FT2_BUILD_LIBRARY",
"FT_CONFIG_MODULES_H=<include/freetype-android/ftmodule.h>",
"FT_CONFIG_OPTIONS_H=<include/freetype-android/ftoption.h>",
"SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) << 24) | ((FREETYPE_MINOR) << 16) | ((FREETYPE_PATCH) << 8))",
]
}
config("libsfntly_compile_flags") {
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
config("ace_libsfntly_config_ohos") {
visibility = [ ":*" ]
include_dirs = ace_libsfntly_config_ohos_include_dirs
}
config("ace_libsfntly_config_windows") {
visibility = [ ":*" ]
include_dirs = ace_libsfntly_config_preview_include_dirs
}
config("ace_libsfntly_config_mac") {
visibility = [ ":*" ]
include_dirs = ace_libsfntly_config_preview_include_dirs
}
template("ace_libsfntly") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
configs = [
":ace_libsfntly_config_$platform",
":libsfntly_compile_flags",
]
defines += invoker.defines
sources = [
"skia/third_party/externals/sfntly/cpp/src/sample/chromium/font_subsetter.cc",
"skia/third_party/externals/sfntly/cpp/src/sample/chromium/subsetter_impl.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/byte_array.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/font_data.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/font_input_stream.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/font_output_stream.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/growable_memory_byte_array.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/memory_byte_array.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/readable_font_data.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/data/writable_font_data.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/font.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/font_factory.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/port/file_input_stream.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/port/lock.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/port/memory_input_stream.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/port/memory_output_stream.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/bitmap_size_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/ebdt_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/eblc_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/ebsc_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/glyph_metrics.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/byte_array_table_builder.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/cmap_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/font_header_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/horizontal_header_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/horizontal_metrics_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/maximum_profile_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/name_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/os2_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/font_data_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/generic_table_builder.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/header.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/subtable.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/table_based_table_builder.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/truetype/glyph_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/table/truetype/loca_table.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/tag.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/tools/subsetter/glyph_table_subsetter.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/tools/subsetter/subsetter.cc",
"skia/third_party/externals/sfntly/cpp/src/sfntly/tools/subsetter/table_subsetter_impl.cc",
]
if (use_mingw_win) {
libs = [ "pthread" ]
}
defines += [
"SFNTLY_NO_EXCEPTION",
"U_USING_ICU_NAMESPACE=0",
"SK_USING_THIRD_PARTY_ICU",
]
}
}
ace_libsfntly("ace_libsfntly_ohos") {
defines = ace_ohos_defines
platform = "ohos"
}
ace_libsfntly("ace_libsfntly_windows") {
defines = ace_windows_defines
platform = "windows"
}
ace_libsfntly("ace_libsfntly_mac") {
defines = ace_mac_defines
platform = "mac"
}
config("ace_libwebp_config") {
visibility = [ ":*" ]
include_dirs = [
"skia/third_party/externals/libwebp/src",
"skia/third_party/externals/libwebp",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_libwebp") {
configs = [ ":ace_libwebp_config" ]
configs += [ ":reduce_eh_frame_config" ]
if ((target_cpu == "x86_64" && !use_mingw_win) || use_mac) {
deps = [ ":ace_libwebp_sse41" ]
}
sources = [
"skia/third_party/externals/libwebp/src/dec/alpha_dec.c",
"skia/third_party/externals/libwebp/src/dec/buffer_dec.c",
"skia/third_party/externals/libwebp/src/dec/frame_dec.c",
"skia/third_party/externals/libwebp/src/dec/idec_dec.c",
"skia/third_party/externals/libwebp/src/dec/io_dec.c",
"skia/third_party/externals/libwebp/src/dec/quant_dec.c",
"skia/third_party/externals/libwebp/src/dec/tree_dec.c",
"skia/third_party/externals/libwebp/src/dec/vp8_dec.c",
"skia/third_party/externals/libwebp/src/dec/vp8l_dec.c",
"skia/third_party/externals/libwebp/src/dec/webp_dec.c",
"skia/third_party/externals/libwebp/src/demux/anim_decode.c",
"skia/third_party/externals/libwebp/src/demux/demux.c",
"skia/third_party/externals/libwebp/src/dsp/alpha_processing.c",
"skia/third_party/externals/libwebp/src/dsp/alpha_processing_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/alpha_processing_neon.c",
"skia/third_party/externals/libwebp/src/dsp/alpha_processing_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/cost.c",
"skia/third_party/externals/libwebp/src/dsp/cost_mips32.c",
"skia/third_party/externals/libwebp/src/dsp/cost_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/cost_neon.c",
"skia/third_party/externals/libwebp/src/dsp/cost_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/cpu.c",
"skia/third_party/externals/libwebp/src/dsp/dec.c",
"skia/third_party/externals/libwebp/src/dsp/dec_clip_tables.c",
"skia/third_party/externals/libwebp/src/dsp/dec_mips32.c",
"skia/third_party/externals/libwebp/src/dsp/dec_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/dec_msa.c",
"skia/third_party/externals/libwebp/src/dsp/dec_neon.c",
"skia/third_party/externals/libwebp/src/dsp/dec_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/enc.c",
"skia/third_party/externals/libwebp/src/dsp/enc_mips32.c",
"skia/third_party/externals/libwebp/src/dsp/enc_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/enc_msa.c",
"skia/third_party/externals/libwebp/src/dsp/enc_neon.c",
"skia/third_party/externals/libwebp/src/dsp/enc_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/filters.c",
"skia/third_party/externals/libwebp/src/dsp/filters_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/filters_msa.c",
"skia/third_party/externals/libwebp/src/dsp/filters_neon.c",
"skia/third_party/externals/libwebp/src/dsp/filters_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/lossless.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_enc.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_enc_mips32.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_enc_msa.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_enc_neon.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_enc_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_msa.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_neon.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/rescaler.c",
"skia/third_party/externals/libwebp/src/dsp/rescaler_mips32.c",
"skia/third_party/externals/libwebp/src/dsp/rescaler_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/rescaler_msa.c",
"skia/third_party/externals/libwebp/src/dsp/rescaler_neon.c",
"skia/third_party/externals/libwebp/src/dsp/rescaler_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/ssim.c",
"skia/third_party/externals/libwebp/src/dsp/ssim_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/upsampling.c",
"skia/third_party/externals/libwebp/src/dsp/upsampling_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/upsampling_msa.c",
"skia/third_party/externals/libwebp/src/dsp/upsampling_neon.c",
"skia/third_party/externals/libwebp/src/dsp/upsampling_sse2.c",
"skia/third_party/externals/libwebp/src/dsp/yuv.c",
"skia/third_party/externals/libwebp/src/dsp/yuv_mips32.c",
"skia/third_party/externals/libwebp/src/dsp/yuv_mips_dsp_r2.c",
"skia/third_party/externals/libwebp/src/dsp/yuv_neon.c",
"skia/third_party/externals/libwebp/src/dsp/yuv_sse2.c",
"skia/third_party/externals/libwebp/src/enc/alpha_enc.c",
"skia/third_party/externals/libwebp/src/enc/analysis_enc.c",
"skia/third_party/externals/libwebp/src/enc/backward_references_cost_enc.c",
"skia/third_party/externals/libwebp/src/enc/backward_references_enc.c",
"skia/third_party/externals/libwebp/src/enc/config_enc.c",
"skia/third_party/externals/libwebp/src/enc/cost_enc.c",
"skia/third_party/externals/libwebp/src/enc/filter_enc.c",
"skia/third_party/externals/libwebp/src/enc/frame_enc.c",
"skia/third_party/externals/libwebp/src/enc/histogram_enc.c",
"skia/third_party/externals/libwebp/src/enc/iterator_enc.c",
"skia/third_party/externals/libwebp/src/enc/near_lossless_enc.c",
"skia/third_party/externals/libwebp/src/enc/picture_csp_enc.c",
"skia/third_party/externals/libwebp/src/enc/picture_enc.c",
"skia/third_party/externals/libwebp/src/enc/picture_psnr_enc.c",
"skia/third_party/externals/libwebp/src/enc/picture_rescale_enc.c",
"skia/third_party/externals/libwebp/src/enc/picture_tools_enc.c",
"skia/third_party/externals/libwebp/src/enc/predictor_enc.c",
"skia/third_party/externals/libwebp/src/enc/quant_enc.c",
"skia/third_party/externals/libwebp/src/enc/syntax_enc.c",
"skia/third_party/externals/libwebp/src/enc/token_enc.c",
"skia/third_party/externals/libwebp/src/enc/tree_enc.c",
"skia/third_party/externals/libwebp/src/enc/vp8l_enc.c",
"skia/third_party/externals/libwebp/src/enc/webp_enc.c",
"skia/third_party/externals/libwebp/src/mux/anim_encode.c",
"skia/third_party/externals/libwebp/src/mux/muxedit.c",
"skia/third_party/externals/libwebp/src/mux/muxinternal.c",
"skia/third_party/externals/libwebp/src/mux/muxread.c",
"skia/third_party/externals/libwebp/src/utils/bit_reader_utils.c",
"skia/third_party/externals/libwebp/src/utils/bit_writer_utils.c",
"skia/third_party/externals/libwebp/src/utils/color_cache_utils.c",
"skia/third_party/externals/libwebp/src/utils/filters_utils.c",
"skia/third_party/externals/libwebp/src/utils/huffman_encode_utils.c",
"skia/third_party/externals/libwebp/src/utils/huffman_utils.c",
"skia/third_party/externals/libwebp/src/utils/quant_levels_dec_utils.c",
"skia/third_party/externals/libwebp/src/utils/quant_levels_utils.c",
"skia/third_party/externals/libwebp/src/utils/random_utils.c",
"skia/third_party/externals/libwebp/src/utils/rescaler_utils.c",
"skia/third_party/externals/libwebp/src/utils/thread_utils.c",
"skia/third_party/externals/libwebp/src/utils/utils.c",
]
defines = [ "WEBP_SWAP_16BIT_CSP" ]
}
config("ace_libwebp_sse41_config") {
visibility = [ ":*" ]
include_dirs = [
"skia/third_party/externals/libwebp/src",
"skia/third_party/externals/libwebp",
]
cflags = [
"-w",
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_libwebp_sse41") {
configs = [ ":ace_libwebp_sse41_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/third_party/externals/libwebp/src/dsp/alpha_processing_sse41.c",
"skia/third_party/externals/libwebp/src/dsp/dec_sse41.c",
"skia/third_party/externals/libwebp/src/dsp/enc_sse41.c",
"skia/third_party/externals/libwebp/src/dsp/lossless_enc_sse41.c",
"skia/third_party/externals/libwebp/src/dsp/upsampling_sse41.c",
"skia/third_party/externals/libwebp/src/dsp/yuv_sse41.c",
]
defines = [ "WEBP_SWAP_16BIT_CSP" ]
}
config("ace_webp_config") {
visibility = [ ":*" ]
include_dirs = [
"skia",
"skia/third_party/externals/libwebp/src",
"skia/third_party/externals/libwebp",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_webp") {
configs = [ ":ace_webp_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/src/codec/SkWebpCodec.cpp",
"skia/src/images/SkWebpEncoder.cpp",
]
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_HAS_WEBP_LIBRARY",
]
}
config("ace_png_config") {
visibility = [ ":*" ]
include_dirs = [
"skia",
"skia/third_party/libpng",
"skia/third_party/externals/libpng",
]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
if (use_mingw_win) {
cflags_cc += [ "-Wno-unknown-pragmas" ]
}
}
ohos_source_set("ace_png") {
configs = [ ":ace_png_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [
"skia/src/codec/SkIcoCodec.cpp",
"skia/src/codec/SkPngCodec.cpp",
"skia/src/images/SkPngEncoder.cpp",
]
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_HAS_PNG_LIBRARY",
]
}
config("ace_heif_config") {
visibility = [ ":*" ]
include_dirs = [ "skia" ]
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
]
}
ohos_source_set("ace_heif") {
configs = [ ":ace_heif_config" ]
configs += [ ":reduce_eh_frame_config" ]
sources = [ "skia/src/codec/SkHeifCodec.cpp" ]
defines = [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_HAS_HEIF_LIBRARY",
]
}
config("ace_svg_model_config") {
visibility = [ ":*" ]
include_dirs = [ "skia" ]
}
config("svg_compile_flags") {
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-Wnon-virtual-dtor",
"-Wno-noexcept-type",
"-Wno-abstract-vbase-init",
"-Wno-weak-vtables",
"-Wno-c++98-compat",
"-Wno-c++98-compat-pedantic",
"-Wno-undefined-func-template",
"-Wno-return-std-move-in-c++11",
"-Wno-implicit-fallthrough",
"-fvisibility-inlines-hidden",
"-Os",
"-Wno-extra-semi",
]
cflags = [
"-fstrict-aliasing",
"-Os",
"-fdata-sections",
"-ffunction-sections",
"-gline-tables-only",
"-funwind-tables",
"-Wall",
"-Wextra",
"-Winit-self",
"-Wpointer-arith",
"-Wsign-compare",
"-Wvla",
"-Wno-deprecated-declarations",
"-Wno-maybe-uninitialized",
"-fcolor-diagnostics",
"-Weverything",
"-Wno-unknown-warning-option",
"-Wno-nonportable-include-path",
"-Wno-nonportable-system-include-path",
"-Wno-cast-align",
"-Wno-cast-qual",
"-Wno-conversion",
"-Wno-disabled-macro-expansion",
"-Wno-documentation",
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-format-nonliteral",
"-Wno-global-constructors",
"-Wno-missing-prototypes",
"-Wno-missing-variable-declarations",
"-Wno-pedantic",
"-Wno-reserved-id-macro",
"-Wno-shadow",
"-Wno-shift-sign-overflow",
"-Wno-signed-enum-bitfield",
"-Wno-switch-enum",
"-Wno-undef",
"-Wno-unreachable-code",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-return",
"-Wno-unused-macros",
"-Wno-unused-member-function",
"-Wno-unused-template",
"-Wno-zero-as-null-pointer-constant",
"-Wno-thread-safety-negative",
"-Wno-bad-function-cast",
"-Wno-covered-switch-default",
"-Wno-deprecated",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
"-Wno-newline-eof",
"-Wno-implicit-fallthrough",
"-Wno-unused-parameter",
"-fvisibility=hidden",
"-Wno-extra-semi",
]
ldflags = [ "-Wl,–gc-sections" ]
}
template("ace_svg_model") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
defines += invoker.defines
sources = [
"skia/experimental/svg/model/CssStyleParser.cpp",
"skia/experimental/svg/model/SkSVGAttribute.cpp",
"skia/experimental/svg/model/SkSVGAttributeParser.cpp",
"skia/experimental/svg/model/SkSVGCircle.cpp",
"skia/experimental/svg/model/SkSVGClipPath.cpp",
"skia/experimental/svg/model/SkSVGContainer.cpp",
"skia/experimental/svg/model/SkSVGDOM.cpp",
"skia/experimental/svg/model/SkSVGEllipse.cpp",
"skia/experimental/svg/model/SkSVGGradient.cpp",
"skia/experimental/svg/model/SkSVGLine.cpp",
"skia/experimental/svg/model/SkSVGLinearGradient.cpp",
"skia/experimental/svg/model/SkSVGNode.cpp",
"skia/experimental/svg/model/SkSVGPath.cpp",
"skia/experimental/svg/model/SkSVGPattern.cpp",
"skia/experimental/svg/model/SkSVGPoly.cpp",
"skia/experimental/svg/model/SkSVGRadialGradient.cpp",
"skia/experimental/svg/model/SkSVGRect.cpp",
"skia/experimental/svg/model/SkSVGRenderContext.cpp",
"skia/experimental/svg/model/SkSVGSVG.cpp",
"skia/experimental/svg/model/SkSVGShape.cpp",
"skia/experimental/svg/model/SkSVGStop.cpp",
"skia/experimental/svg/model/SkSVGTransformableNode.cpp",
"skia/experimental/svg/model/SkSVGUse.cpp",
"skia/experimental/svg/model/SkSVGValue.cpp",
"skia/experimental/svg/model/SkSVGXMLDOM.cpp",
]
configs = []
if (is_standard_system) {
defines += [
"SK_SUPPORT_ATLAS_TEXT=1",
"SK_GAMMA_APPLY_TO_A8",
"SK_GAMMA_EXPONENT=1.4",
"SK_GAMMA_CONTRAST=0.0",
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
"GR_TEST_UTILS=1",
"SKIA_IMPLEMENTATION=1",
"SK_HAS_SVG_LIBRARY",
]
}
configs += [
":ace_svg_model_config",
":svg_compile_flags",
]
}
}
ace_svg_model("ace_svg_model_ohos") {
defines = ace_ohos_defines
}
ace_svg_model("ace_svg_model_windows") {
defines = ace_windows_defines
}
ace_svg_model("ace_svg_model_mac") {
defines = ace_mac_defines
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxilong2021/third_party_flutter.git
git@gitee.com:zhangxilong2021/third_party_flutter.git
zhangxilong2021
third_party_flutter
third_party_flutter
master_rk

搜索帮助