Added Tracker and Deskbar to x86_64 build.

This commit is contained in:
Alex Smith
2012-08-09 19:36:52 +01:00
parent 4b8a51c34c
commit e963289800
10 changed files with 82 additions and 40 deletions
+37 -1
View File
@@ -110,13 +110,49 @@ AddSymlinkToHaikuHybridImage system lib : $(HAIKU_FREETYPE_CURRENT_LINK)
AddFilesToHaikuImage system servers : $(SYSTEM_SERVERS) ; AddFilesToHaikuImage system servers : $(SYSTEM_SERVERS) ;
# apps # apps
AddFilesToHaikuImage system : runtime_loader ; AddFilesToHaikuImage system : runtime_loader Deskbar Tracker ;
AddFilesToHaikuImage system bin : $(SYSTEM_BIN) consoled ; AddFilesToHaikuImage system bin : $(SYSTEM_BIN) consoled ;
AddFilesToHaikuImage system apps : $(SYSTEM_APPS) ; AddFilesToHaikuImage system apps : $(SYSTEM_APPS) ;
AddFilesToHaikuImage system preferences : $(SYSTEM_PREFERENCES) ; AddFilesToHaikuImage system preferences : $(SYSTEM_PREFERENCES) ;
AddFilesToHaikuImage system demos : $(SYSTEM_DEMOS) ; AddFilesToHaikuImage system demos : $(SYSTEM_DEMOS) ;
SEARCH on which = [ FDirName $(HAIKU_TOP) data bin ] ;
AddFilesToHaikuImage system bin : which ;
SEARCH on installoptionalpackage = [ FDirName $(HAIKU_TOP) data bin ] ;
AddFilesToHaikuImage system bin : installoptionalpackage ;
SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ;
AddFilesToHaikuImage system bin : install-wifi-firmwares.sh ;
# Add the files to be used by installoptionalpackage.
AddDirectoryToHaikuImage common data optional-packages ;
local optional-pkg-files = OptionalBuildFeatures OptionalPackageDependencies
OptionalPackages OptionalLibPackages ;
for name in $(optional-pkg-files) {
local file = [ FDirName $(HAIKU_TOP) build jam $(name) ] ;
AddFilesToHaikuImage common data optional-packages : $(file) ;
}
AddInstalledPackagesFileToHaikuImage ;
AddSymlinkToHaikuImage system bin : bash : sh ; AddSymlinkToHaikuImage system bin : bash : sh ;
AddSymlinkToHaikuImage system bin : trash : untrash ;
AddSymlinkToHaikuImage home Desktop : /boot/home : Home ;
# Mailbox folders and symlink
AddDirectoryToHaikuImage home mail draft ;
AddDirectoryToHaikuImage home mail in ;
AddDirectoryToHaikuImage home mail out ;
AddSymlinkToHaikuImage home config : settings/deskbar : be ;
# Deskbar Application links
AddDirectoryToHaikuImage home config settings deskbar Applications ;
DESKBAR_APPLICATIONS = Terminal ;
local linkTarget ;
for linkTarget in $(DESKBAR_APPLICATIONS) {
AddSymlinkToHaikuImage home config settings deskbar Applications
: /boot/system/apps/$(linkTarget) : $(linkTarget) ;
}
AddSymlinkToHaikuImage system bin : less : more ; AddSymlinkToHaikuImage system bin : less : more ;
AddSymlinkToHaikuImage system bin : gzip : gunzip ; AddSymlinkToHaikuImage system bin : gzip : gunzip ;
AddSymlinkToHaikuImage system bin : gzip : zcat ; AddSymlinkToHaikuImage system bin : gzip : zcat ;
+2 -1
View File
@@ -119,7 +119,8 @@ fi
# TODO: remove this when x86_64 is more complete. # TODO: remove this when x86_64 is more complete.
if [ "$(uname -m)" = "x86_64" ]; then if [ "$(uname -m)" = "x86_64" ]; then
cd /boot/home cd /boot/home
launch system/apps/Terminal launch system/Tracker
launch system/Deskbar
exit exit
fi fi
+7 -7
View File
@@ -116,7 +116,7 @@ TBarApp::TBarApp()
numTeams = teamList.CountItems(); numTeams = teamList.CountItems();
for (int32 i = 0; i < numTeams; i++) { for (int32 i = 0; i < numTeams; i++) {
app_info appInfo; app_info appInfo;
team_id tID = (team_id)teamList.ItemAt(i); team_id tID = (addr_t)teamList.ItemAt(i);
if (be_roster->GetRunningAppInfo(tID, &appInfo) == B_OK) { if (be_roster->GetRunningAppInfo(tID, &appInfo) == B_OK) {
AddTeam(appInfo.team, appInfo.flags, appInfo.signature, AddTeam(appInfo.team, appInfo.flags, appInfo.signature,
&appInfo.ref); &appInfo.ref);
@@ -454,7 +454,7 @@ TBarApp::MessageReceived(BMessage* message)
message->FindInt32("be:team", &team); message->FindInt32("be:team", &team);
uint32 flags = 0; uint32 flags = 0;
message->FindInt32("be:flags", (long*)&flags); message->FindInt32("be:flags", (int32*)&flags);
const char* sig = NULL; const char* sig = NULL;
message->FindString("be:signature", &sig); message->FindString("be:signature", &sig);
@@ -717,14 +717,14 @@ TBarApp::AddTeam(team_id team, uint32 flags, const char* sig, entry_ref* ref)
int32 teamCount = sBarTeamInfoList.CountItems(); int32 teamCount = sBarTeamInfoList.CountItems();
for (int32 i = 0; i < teamCount; i++) { for (int32 i = 0; i < teamCount; i++) {
BarTeamInfo* barInfo = (BarTeamInfo*)sBarTeamInfoList.ItemAt(i); BarTeamInfo* barInfo = (BarTeamInfo*)sBarTeamInfoList.ItemAt(i);
if (barInfo->teams->HasItem((void*)team)) if (barInfo->teams->HasItem((void*)(addr_t)team))
return; return;
if (strcasecmp(barInfo->sig, sig) == 0) if (strcasecmp(barInfo->sig, sig) == 0)
multiLaunchTeam = barInfo; multiLaunchTeam = barInfo;
} }
if (multiLaunchTeam != NULL) { if (multiLaunchTeam != NULL) {
multiLaunchTeam->teams->AddItem((void*)team); multiLaunchTeam->teams->AddItem((void*)(addr_t)team);
int32 subsCount = sSubscribers.CountItems(); int32 subsCount = sSubscribers.CountItems();
if (subsCount > 0) { if (subsCount > 0) {
@@ -756,7 +756,7 @@ TBarApp::AddTeam(team_id team, uint32 flags, const char* sig, entry_ref* ref)
FetchAppIcon(barInfo->sig, barInfo->icon); FetchAppIcon(barInfo->sig, barInfo->icon);
} }
barInfo->teams->AddItem((void*)team); barInfo->teams->AddItem((void*)(addr_t)team);
sBarTeamInfoList.AddItem(barInfo); sBarTeamInfoList.AddItem(barInfo);
@@ -797,7 +797,7 @@ TBarApp::RemoveTeam(team_id team)
int32 teamCount = sBarTeamInfoList.CountItems(); int32 teamCount = sBarTeamInfoList.CountItems();
for (int32 i = 0; i < teamCount; i++) { for (int32 i = 0; i < teamCount; i++) {
BarTeamInfo* barInfo = (BarTeamInfo*)sBarTeamInfoList.ItemAt(i); BarTeamInfo* barInfo = (BarTeamInfo*)sBarTeamInfoList.ItemAt(i);
if (barInfo->teams->HasItem((void*)team)) { if (barInfo->teams->HasItem((void*)(addr_t)team)) {
int32 subsCount = sSubscribers.CountItems(); int32 subsCount = sSubscribers.CountItems();
if (subsCount > 0) { if (subsCount > 0) {
BMessage message((barInfo->teams->CountItems() == 1) BMessage message((barInfo->teams->CountItems() == 1)
@@ -810,7 +810,7 @@ TBarApp::RemoveTeam(team_id team)
} }
} }
barInfo->teams->RemoveItem((void*)team); barInfo->teams->RemoveItem((void*)(addr_t)team);
if (barInfo->teams->CountItems() < 1) { if (barInfo->teams->CountItems() < 1) {
delete (BarTeamInfo*)sBarTeamInfoList.RemoveItem(i); delete (BarTeamInfo*)sBarTeamInfoList.RemoveItem(i);
return; return;
+5 -1
View File
@@ -72,7 +72,11 @@ All rights reserved.
#elif __GNUC__ <= 2 #elif __GNUC__ <= 2
#define BMenuBar_StartMenuBar_Hack StartMenuBar__8BMenuBarlbT2P5BRect #define BMenuBar_StartMenuBar_Hack StartMenuBar__8BMenuBarlbT2P5BRect
#elif __GNUC__ > 2 #elif __GNUC__ > 2
#define BMenuBar_StartMenuBar_Hack _ZN8BMenuBar12StartMenuBarElbbP5BRect #if B_HAIKU_64_BIT
#define BMenuBar_StartMenuBar_Hack _ZN8BMenuBar12StartMenuBarEibbP5BRect
#else
#define BMenuBar_StartMenuBar_Hack _ZN8BMenuBar12StartMenuBarElbbP5BRect
#endif
#else #else
# error "You may want to port this ugly hack to your compiler ABI" # error "You may want to port this ugly hack to your compiler ABI"
#endif #endif
+6 -6
View File
@@ -338,7 +338,7 @@ TExpandoMenuBar::MouseDown(BPoint where)
team_id teamID; team_id teamID;
for (int32 team = 0; team < teamCount; team++) { for (int32 team = 0; team < teamCount; team++) {
teamID = (team_id)teams->ItemAt(team); teamID = (addr_t)teams->ItemAt(team);
kill_team(teamID); kill_team(teamID);
// remove the team immediately from display // remove the team immediately from display
RemoveTeam(teamID, false); RemoveTeam(teamID, false);
@@ -378,7 +378,7 @@ TExpandoMenuBar::MouseDown(BPoint where)
if (message->FindInt32("clicks", &clicks) == B_OK && clicks > 1 if (message->FindInt32("clicks", &clicks) == B_OK && clicks > 1
&& item == menuItem && item == fLastClickItem) { && item == menuItem && item == fLastClickItem) {
// activate this team // activate this team
be_roster->ActivateApp((team_id)item->Teams()->ItemAt(0)); be_roster->ActivateApp((addr_t)item->Teams()->ItemAt(0));
return; return;
} }
@@ -627,8 +627,8 @@ TExpandoMenuBar::AddTeam(team_id team, const char* signature)
// Only add to team menu items // Only add to team menu items
if (TTeamMenuItem* item = dynamic_cast<TTeamMenuItem*>(ItemAt(i))) { if (TTeamMenuItem* item = dynamic_cast<TTeamMenuItem*>(ItemAt(i))) {
if (strcasecmp(item->Signature(), signature) == 0) { if (strcasecmp(item->Signature(), signature) == 0) {
if (!(item->Teams()->HasItem((void*)team))) if (!(item->Teams()->HasItem((void*)(addr_t)team)))
item->Teams()->AddItem((void*)team); item->Teams()->AddItem((void*)(addr_t)team);
break; break;
} }
} }
@@ -642,7 +642,7 @@ TExpandoMenuBar::RemoveTeam(team_id team, bool partial)
int32 count = CountItems(); int32 count = CountItems();
for (int32 i = fFirstApp; i < count; i++) { for (int32 i = fFirstApp; i < count; i++) {
if (TTeamMenuItem* item = dynamic_cast<TTeamMenuItem*>(ItemAt(i))) { if (TTeamMenuItem* item = dynamic_cast<TTeamMenuItem*>(ItemAt(i))) {
if (item->Teams()->HasItem((void*)team)) { if (item->Teams()->HasItem((void*)(addr_t)team)) {
item->Teams()->RemoveItem(team); item->Teams()->RemoveItem(team);
if (partial) if (partial)
@@ -849,7 +849,7 @@ TExpandoMenuBar::monitor_team_windows(void* arg)
for (int32 j = 0; j < teamCount; j++) { for (int32 j = 0; j < teamCount; j++) {
// The following code is almost a copy/paste from // The following code is almost a copy/paste from
// WindowMenu.cpp // WindowMenu.cpp
team_id theTeam = (team_id)teamItem->Teams()->ItemAt(j); team_id theTeam = (addr_t)teamItem->Teams()->ItemAt(j);
int32 count = 0; int32 count = 0;
int32* tokens = get_token_list(theTeam, &count); int32* tokens = get_token_list(theTeam, &count);
+1 -1
View File
@@ -115,7 +115,7 @@ TShowHideMenuItem::TeamShowHideCommon(int32 action, const BList* teamList,
int32 count = teamList->CountItems(); int32 count = teamList->CountItems();
for (int32 index = 0; index < count; index++) { for (int32 index = 0; index < count; index++) {
team_id team = (team_id)teamList->ItemAt(index); team_id team = (addr_t)teamList->ItemAt(index);
switch (action) { switch (action) {
case B_MINIMIZE_WINDOW: case B_MINIMIZE_WINDOW:
+6 -5
View File
@@ -95,10 +95,11 @@ float sMinimumWindowWidth = kGutter + kMinimumTrayWidth + kDragRegionWidth;
static void static void
DumpItem(DeskbarItemInfo* item) DumpItem(DeskbarItemInfo* item)
{ {
printf("is addon: %i, id: %li\n", item->isAddOn, item->id); printf("is addon: %i, id: %" B_PRId32 "\n", item->isAddOn, item->id);
printf("entry_ref: %ld, %Ld, %s\n", item->entryRef.device, printf("entry_ref: %" B_PRIdDEV ", %" B_PRIdINO ", %s\n",
item->entryRef.directory, item->entryRef.name); item->entryRef.device, item->entryRef.directory, item->entryRef.name);
printf("node_ref: %ld, %Ld\n", item->nodeRef.device, item->nodeRef.node); printf("node_ref: %" B_PRIdDEV ", %" B_PRIdINO "\n", item->nodeRef.device,
item->nodeRef.node);
} }
@@ -1428,7 +1429,7 @@ TDragRegion::DragRegion() const
void void
TDragRegion::MouseDown(BPoint thePoint) TDragRegion::MouseDown(BPoint thePoint)
{ {
ulong buttons; uint32 buttons;
BPoint where; BPoint where;
BRect dragRegion(DragRegion()); BRect dragRegion(DragRegion());
+16 -16
View File
@@ -486,7 +486,7 @@ TSwitchManager::MessageReceived(BMessage* message)
message->FindInt32("team", &teamID); message->FindInt32("team", &teamID);
while ((tinfo = (TTeamGroup*)fGroupList.ItemAt(i)) != NULL) { while ((tinfo = (TTeamGroup*)fGroupList.ItemAt(i)) != NULL) {
if (tinfo->TeamList()->HasItem((void*)teamID)) { if (tinfo->TeamList()->HasItem((void*)(addr_t)teamID)) {
fGroupList.RemoveItem(i); fGroupList.RemoveItem(i);
if (OKToUse(tinfo)) { if (OKToUse(tinfo)) {
@@ -555,8 +555,8 @@ TSwitchManager::MessageReceived(BMessage* message)
for (int32 i = 0; i < fGroupList.CountItems(); i++) { for (int32 i = 0; i < fGroupList.CountItems(); i++) {
TTeamGroup* tinfo = (TTeamGroup*)fGroupList.ItemAt(i); TTeamGroup* tinfo = (TTeamGroup*)fGroupList.ItemAt(i);
if (strcasecmp(tinfo->Signature(), signature) == 0) { if (strcasecmp(tinfo->Signature(), signature) == 0) {
if (!(tinfo->TeamList()->HasItem((void*)team))) if (!(tinfo->TeamList()->HasItem((void*)(addr_t)team)))
tinfo->TeamList()->AddItem((void*)team); tinfo->TeamList()->AddItem((void*)(addr_t)team);
break; break;
} }
} }
@@ -569,8 +569,8 @@ TSwitchManager::MessageReceived(BMessage* message)
for (int32 i = 0; i < fGroupList.CountItems(); i++) { for (int32 i = 0; i < fGroupList.CountItems(); i++) {
TTeamGroup* tinfo = (TTeamGroup*)fGroupList.ItemAt(i); TTeamGroup* tinfo = (TTeamGroup*)fGroupList.ItemAt(i);
if (tinfo->TeamList()->HasItem((void*)team)) { if (tinfo->TeamList()->HasItem((void*)(addr_t)team)) {
tinfo->TeamList()->RemoveItem((void*)team); tinfo->TeamList()->RemoveItem((void*)(addr_t)team);
break; break;
} }
} }
@@ -638,7 +638,7 @@ TSwitchManager::_SortApps()
// find team // find team
TTeamGroup* info = NULL; TTeamGroup* info = NULL;
for (int32 j = 0; (info = (TTeamGroup*)groups.ItemAt(j)) != NULL; j++) { for (int32 j = 0; (info = (TTeamGroup*)groups.ItemAt(j)) != NULL; j++) {
if (info->TeamList()->HasItem((void*)teams[i])) { if (info->TeamList()->HasItem((void*)(addr_t)teams[i])) {
groups.RemoveItem(j); groups.RemoveItem(j);
break; break;
} }
@@ -720,7 +720,7 @@ TSwitchManager::FindTeam(team_id teamID, int32* index)
int i = 0; int i = 0;
TTeamGroup* info; TTeamGroup* info;
while ((info = (TTeamGroup*)fGroupList.ItemAt(i)) != NULL) { while ((info = (TTeamGroup*)fGroupList.ItemAt(i)) != NULL) {
if (info->TeamList()->HasItem((void*)teamID)) { if (info->TeamList()->HasItem((void*)(addr_t)teamID)) {
*index = i; *index = i;
return info; return info;
} }
@@ -953,7 +953,7 @@ TSwitchManager::ActivateApp(bool forceShow, bool allowWorkspaceSwitch)
result = false; result = false;
} else { } else {
result = true; result = true;
be_roster->ActivateApp((team_id)teamGroup->TeamList()->ItemAt(0)); be_roster->ActivateApp((addr_t)teamGroup->TeamList()->ItemAt(0));
} }
ASSERT(windowInfo); ASSERT(windowInfo);
@@ -1013,8 +1013,8 @@ TSwitchManager::ActivateApp(bool forceShow, bool allowWorkspaceSwitch)
break; break;
} }
if (matchWindowInfo->server_token != windowInfo->server_token if (matchWindowInfo->server_token != windowInfo->server_token
&& teamGroup->TeamList()->HasItem((void*)matchWindowInfo->team)) && teamGroup->TeamList()->HasItem((void*)(addr_t)matchWindowInfo->team))
windowsToActivate.AddItem((void*)matchWindowInfo->server_token); windowsToActivate.AddItem((void*)(addr_t)matchWindowInfo->server_token);
free(matchWindowInfo); free(matchWindowInfo);
} }
@@ -1025,7 +1025,7 @@ TSwitchManager::ActivateApp(bool forceShow, bool allowWorkspaceSwitch)
// order. // order.
int32 i = windowsToActivate.CountItems() - 1; int32 i = windowsToActivate.CountItems() - 1;
for (; i >= 0; i--) { for (; i >= 0; i--) {
int32 wid = (int32) windowsToActivate.ItemAt(i); int32 wid = (addr_t)windowsToActivate.ItemAt(i);
do_window_action(wid, B_BRING_TO_FRONT, BRect(0, 0, 0, 0), false); do_window_action(wid, B_BRING_TO_FRONT, BRect(0, 0, 0, 0), false);
} }
@@ -1068,7 +1068,7 @@ TSwitchManager::QuitApp()
// send the quit request to all teams in this group // send the quit request to all teams in this group
for (int32 i = teamGroup->TeamList()->CountItems(); i-- > 0;) { for (int32 i = teamGroup->TeamList()->CountItems(); i-- > 0;) {
team_id team = (team_id)teamGroup->TeamList()->ItemAt(i); team_id team = (addr_t)teamGroup->TeamList()->ItemAt(i);
app_info info; app_info info;
if (be_roster->GetRunningAppInfo(team, &info) == B_OK) { if (be_roster->GetRunningAppInfo(team, &info) == B_OK) {
if (!strcasecmp(info.signature, kTrackerSignature)) { if (!strcasecmp(info.signature, kTrackerSignature)) {
@@ -1091,7 +1091,7 @@ TSwitchManager::HideApp()
TTeamGroup* teamGroup = (TTeamGroup*)fGroupList.ItemAt(fCurrentIndex); TTeamGroup* teamGroup = (TTeamGroup*)fGroupList.ItemAt(fCurrentIndex);
for (int32 i = teamGroup->TeamList()->CountItems(); i-- > 0;) { for (int32 i = teamGroup->TeamList()->CountItems(); i-- > 0;) {
team_id team = (team_id)teamGroup->TeamList()->ItemAt(i); team_id team = (addr_t)teamGroup->TeamList()->ItemAt(i);
app_info info; app_info info;
if (be_roster->GetRunningAppInfo(team, &info) == B_OK) if (be_roster->GetRunningAppInfo(team, &info) == B_OK)
do_minimize_team(BRect(), team, false); do_minimize_team(BRect(), team, false);
@@ -1124,7 +1124,7 @@ TSwitchManager::WindowInfo(int32 groupIndex, int32 windowIndex)
if (windowInfo) { if (windowInfo) {
// skip hidden/special windows // skip hidden/special windows
if (IsWindowOK(windowInfo) if (IsWindowOK(windowInfo)
&& (teamGroup->TeamList()->HasItem((void*)windowInfo->team))) { && (teamGroup->TeamList()->HasItem((void*)(addr_t)windowInfo->team))) {
// this window belongs to the team! // this window belongs to the team!
if (matches == windowIndex) { if (matches == windowIndex) {
// we found it! // we found it!
@@ -1154,7 +1154,7 @@ TSwitchManager::CountWindows(int32 groupIndex, bool )
int32 result = 0; int32 result = 0;
for (int32 i = 0; ; i++) { for (int32 i = 0; ; i++) {
team_id teamID = (team_id)teamGroup->TeamList()->ItemAt(i); team_id teamID = (addr_t)teamGroup->TeamList()->ItemAt(i);
if (teamID == 0) if (teamID == 0)
break; break;
@@ -1206,7 +1206,7 @@ TSwitchManager::SwitchWindow(team_id team, bool, bool activate)
for (int32 i = count - 1; i >= 0; i--) { for (int32 i = count - 1; i >= 0; i--) {
client_window_info* windowInfo = get_window_info(tokens[i]); client_window_info* windowInfo = get_window_info(tokens[i]);
if (windowInfo && IsVisibleInCurrentWorkspace(windowInfo) if (windowInfo && IsVisibleInCurrentWorkspace(windowInfo)
&& teamGroup->TeamList()->HasItem((void*)windowInfo->team)) { && teamGroup->TeamList()->HasItem((void*)(addr_t)windowInfo->team)) {
fWindowID = windowInfo->server_token; fWindowID = windowInfo->server_token;
if (activate) if (activate)
ActivateWindow(windowInfo->server_token); ActivateWindow(windowInfo->server_token);
+1 -1
View File
@@ -90,7 +90,7 @@ TTeamMenuItem::InitData(BList* team, BBitmap* icon, char* name, char* sig,
fSig = sig; fSig = sig;
if (fName == NULL) { if (fName == NULL) {
char temp[32]; char temp[32];
snprintf(temp, sizeof(temp), "team %ld", (int32)team->ItemAt(0)); snprintf(temp, sizeof(temp), "team %ld", (addr_t)team->ItemAt(0));
fName = strdup(temp); fName = strdup(temp);
} }
+1 -1
View File
@@ -120,7 +120,7 @@ TWindowMenu::AttachedToWindow()
int32 teamCount = fTeam->CountItems(); int32 teamCount = fTeam->CountItems();
for (int32 i = 0; i < teamCount; i++) { for (int32 i = 0; i < teamCount; i++) {
team_id theTeam = (team_id)fTeam->ItemAt(i); team_id theTeam = (addr_t)fTeam->ItemAt(i);
int32 tokenCount = 0; int32 tokenCount = 0;
int32* tokens = get_token_list(theTeam, &tokenCount); int32* tokens = get_token_list(theTeam, &tokenCount);