Closed Bug 283057 Opened 21 years ago Closed 21 years ago

Fold sqlite3 build into storage, honour ENABLE_TESTS

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: shaver, Assigned: shaver)

References

Details

Attachments

(1 file)

.
Attached patch as summarizedSplinter Review
Attachment #175055 - Flags: review?(benjamin)
Comment on attachment 175055 [details] [diff] [review] as summarized >Index: storage/Makefile.in >+DIRS = ../db/sqlite3/src public src build You are taking your life in your hands with the "..". You can expect errors, but I'll let you do it if you will fix make-makefile errors later on. Also, separate lines: ../db/sqlite3/src \ public \ src \
Attachment #175055 - Flags: review?(benjamin) → review+
MOZ_ARG_ENABLE_BOOL(storage, [ --enable-storage Enable mozStorage module and related components], MOZ_STORAGE=1, MOZ_STORAGE= ) -if test -n "$MOZ_STORAGE"; then +if test -n "$MOZ_STORAGE" -o -n "$MOZ_CALENDAR"; then AC_DEFINE(MOZ_STORAGE) fi Instead, please do: if -n "$MOZ_CALENDAR"; then MOZ_STORAGE=1 fi MOZ_ARG_ENABLE_BOOL(...
(In reply to comment #3) > MOZ_ARG_ENABLE_BOOL(storage, > [ --enable-storage Enable mozStorage module and related components], > MOZ_STORAGE=1, > MOZ_STORAGE= ) > -if test -n "$MOZ_STORAGE"; then > +if test -n "$MOZ_STORAGE" -o -n "$MOZ_CALENDAR"; then > AC_DEFINE(MOZ_STORAGE) > fi > > Instead, please do: > > if -n "$MOZ_CALENDAR"; then > MOZ_STORAGE=1 > fi > MOZ_ARG_ENABLE_BOOL(... Will that work? Won't the FALSE case of MOZ_ARG_ENABLE_BOOL overwrite my =1 with its no-rval =? I guess I can try it!
Depends on: 283156
> Will that work? Won't the FALSE case of MOZ_ARG_ENABLE_BOOL overwrite my =1 > with its no-rval =? I guess I can try it! That's a common misconception. The actual macro declaration is at http://lxr.mozilla.org/mozilla/source/build/autoconf/altoptions.m4#45 dnl MOZ_ARG_ENABLE_BOOL( NAME, HELP, IF-YES [, IF-NO [, ELSE]]) So it won't overwrite unless somebody explicitly adds --disable-storage (and if they do that, we assume they know what they're doing).
Committed the sqlite/storage parts, at long last.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Forgive my impudence, but shouldn't DIRS = test be DIRS += test in mozilla/storage/Makefile.in
Uh, yes, quite. Lemme update a tree!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Fixed, thanks.
Status: REOPENED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: