xref: /haiku/src/apps/webpositive/Jamfile (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1SubDir HAIKU_TOP src apps webpositive ;
2
3SubDirC++Flags $(defines) -Wno-error=sequence-point -Wno-error=format-truncation ;
4SubDirCcFlags $(defines) -Wno-error=sequence-point -Wno-error=format-truncation ;
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	BookmarkBar.cpp
22	FontSelectionView.cpp
23
24	# tabview
25	TabContainerView.cpp
26	TabManager.cpp
27	TabView.cpp
28
29	AuthenticationPanel.cpp
30	BrowserApp.cpp
31	BrowserWindow.cpp
32	BrowsingHistory.cpp
33	ConsoleWindow.cpp
34	CookieWindow.cpp
35	CredentialsStorage.cpp
36	DownloadProgressView.cpp
37	DownloadWindow.cpp
38	SettingsKeys.cpp
39	SettingsWindow.cpp
40	URLInputGroup.cpp
41;
42
43# We build WebPositive only for one architecture -- the first architecture for
44# which it is possible.
45local architectureObject ;
46for architectureObject in [ MultiArchSubDirSetup ] {
47	on $(architectureObject) {
48		if ! [ FIsBuildFeatureEnabled webkit ] {
49			continue ;
50		}
51
52		UseBuildFeatureHeaders webkit ;
53
54		local sourceDir ;
55		for sourceDir in $(sourceDirs) {
56			SEARCH_SOURCE
57				+= [ FDirName $(HAIKU_TOP) src apps webpositive $(sourceDir) ] ;
58		}
59
60		Includes [ FGristFiles $(sources) ]
61			: [ BuildFeatureAttribute webkit : headers ] ;
62			# Dependency needed to trigger downloading/unzipping the package
63			# before compiling the files.
64
65		# private OS headers
66		UseLibraryHeaders icon ;
67		UsePrivateHeaders interface netservices shared tracker ;
68		SubDirHdrs $(HAIKU_TOP) src kits tracker ;
69
70		Application WebPositive :
71			$(sources)
72			:
73			bnetapi [ MultiArchDefaultGristFiles libnetservices.a libcolumnlistview.a ]
74			[ BuildFeatureAttribute webkit : libraries ]
75			[ TargetLibstdc++ ] localestub shared
76			be network tracker translation
77			:
78			WebPositive.rdef
79			;
80
81		DoCatalogs WebPositive :
82			x-vnd.Haiku-WebPositive
83			:
84			$(sources)
85			;
86
87		ExtractArchiveToHaikuImage home config settings WebPositive
88			: $(SUBDIR)/bookmarks/WebPositiveBookmarks.zip ;
89
90		EnableBuildFeatures webpositive ;
91
92		break ;
93	}
94}
95