1SubDir HAIKU_TOP src apps webpositive ; 2 3SubDirC++Flags $(defines) -Wno-error=sequence-point --std=c++11 ; 4SubDirCcFlags $(defines) -Wno-error=sequence-point ; 5 6# source directories 7local sourceDirs = 8 autocompletion 9 support 10 tabview 11; 12 13local sources = 14 # autocompletion 15 AutoCompleter.cpp 16 AutoCompleterDefaultImpl.cpp 17 TextViewCompleter.cpp 18 19 # support 20 BaseURL.cpp 21 BitmapButton.cpp 22 BookmarkBar.cpp 23 FontSelectionView.cpp 24 SettingsMessage.cpp 25 26 # tabview 27 TabContainerView.cpp 28 TabManager.cpp 29 TabView.cpp 30 31 AuthenticationPanel.cpp 32 BrowserApp.cpp 33 BrowserWindow.cpp 34 BrowsingHistory.cpp 35 CredentialsStorage.cpp 36 DownloadProgressView.cpp 37 DownloadWindow.cpp 38 SettingsKeys.cpp 39 SettingsWindow.cpp 40 URLInputGroup.cpp 41 ConsoleWindow.cpp 42; 43 44# We build WebPositive only for one architecture -- the first architecture for 45# which it is possible. 46local architectureObject ; 47for architectureObject in [ MultiArchSubDirSetup ] { 48 on $(architectureObject) { 49 if ! [ FIsBuildFeatureEnabled webkit ] { 50 continue ; 51 } 52 53 UseBuildFeatureHeaders webkit ; 54 55 local sourceDir ; 56 for sourceDir in $(sourceDirs) { 57 SEARCH_SOURCE 58 += [ FDirName $(HAIKU_TOP) src apps webpositive $(sourceDir) ] ; 59 } 60 61 Includes [ FGristFiles $(sources) ] 62 : [ BuildFeatureAttribute webkit : headers ] ; 63 # Dependency needed to trigger downloading/unzipping the package 64 # before compiling the files. 65 66 # private OS headers 67 UseLibraryHeaders icon ; 68 UsePrivateHeaders interface shared tracker ; 69 SubDirHdrs $(HAIKU_TOP) src kits tracker ; 70 71 Application WebPositive : 72 $(sources) 73 : 74 [ BuildFeatureAttribute webkit : libraries ] 75 [ TargetLibstdc++ ] localestub 76 [ MultiArchDefaultGristFiles libshared.a ] 77 be network bnetapi tracker translation 78 : 79 WebPositive.rdef 80 ; 81 82 DoCatalogs WebPositive : 83 x-vnd.Haiku-WebPositive 84 : 85 $(sources) 86 ; 87 88 EnableBuildFeatures webpositive ; 89 90 break ; 91 } 92} 93