Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Astuce pour accéler la vitesse de compilation

Featured Replies

Posté(e)

Bonjour,

Mon projet Android comporte une bibliothèque écrite en C++, avec 200 fichiers sources .cpp. La vitesse de compilation de cette bibliothèque étant assez lente, j'ai effectué quelques recherches et je suis tombé sur une option bien intéressante du compilateur GNU : la compilation en parallèle. En fonction du nombre de cœurs de votre processeur, on peut réduire fortement le temps de compilation.

Pour cela, il faut modifier le fichier ndk-build. La dernière ligne de ce fichier est la suivante :

$GNUMAKE -f $PROGDIR/build/core/build-local.mk "$@"

Il suffit d'ajouter le paramètre -j [N], N étant le nombre de fichiers compilés en parallèle. Dans mon cas, j'ai un Q6600 avec 4 cœurs, j'ai donc mis :

$GNUMAKE -j 4 -f $PROGDIR/build/core/build-local.mk "$@"

J'ai pu gratter encore quelques secondes en mettant 6. A vous de voir en fonction de votre configuration matérielle quel sera la valeur optimale.

Bonne compilation !

Rejoignez la conversation

Vous pouvez poster maintenant et vous enregistrez plus tard. Si vous avez un compte, connectez-vous maintenant pour poster.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.