我已經構建了V8靜態庫,如解釋here所述。現在我試圖用它來創建一個示例HelloWorld應用程序。問題在於文檔沒有說我需要在示例項目中引用的構建中的哪些文件。他們只顯示了該項目如何能利用g++
編譯:如何從「開始組...結束組」鏈接器選項構建文件列表
g++ -I. -Iinclude samples/hello-world.cc -o hello-world -Wl,--start-group \
out.gn/x64.release/obj/{libv8_{base,libbase,external_snapshot,libplatform,libsampler},\
third_party/icu/libicu{uc,i18n},src/inspector/libinspector}.a \
-Wl,--end-group -lrt -ldl -pthread -std=c++0x
我讀過一些關於g++
選項,並假設從--start-group...--end-group
鏈接器選項構建的文件列表是什麼,我需要在我的項目引用編譯時。但我不明白如何構建文件列表。我以爲會有像
out.gn/x64.release/obj/libv8_base
out.gn/x64.release/obj/libv8_libbase
...
但他們不在那裏。相反,有文件夾:
out.gn/x64.release/obj/v8_base
out.gn/x64.release/obj/v8_libbase
out.gn/x64.release/obj/v8_external_snapshot
...
與.obj
文件。我錯過了什麼?