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